# Agent Tools – Safe Web Read with Prompt Injection Detection

> Agent Tools – Safe Web Read with Prompt Injection Detection is a paid API for AI agents from agents.crowdspark.me, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-02).

Fetches a public web page, converts it to clean markdown, and screens it for prompt injection attacks, returning a safety verdict, score, and matched spans.

## Facts

- Endpoint: GET https://agents.crowdspark.me/v1/web/safe-read?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-tools-safe-web-read-with-prompt-injection-detection-f1d134f4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WjWI0GakzkGCZ1UXIajqy

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-tools-safe-web-read-with-prompt-injection-detection-f1d134f4
```

Example prompt: Before you summarize that article, safely fetch https://example.com/article and check whether it contains any prompt injection — give me the clean markdown and tell me if it's safe, suspicious, or malicious.

## When to prefer this

Choose this endpoint when your agent needs to read an untrusted or user-supplied URL and you want both clean markdown extraction and prompt injection screening in a single call, avoiding the need to chain a scraper with a separate safety filter. Especially valuable in agentic pipelines where adversarial web content could hijack the agent's behavior. Prefer over generic scrapers when agent safety is a concern.

## Known failure modes

- URL is blocked by robots.txt — endpoint respects robots.txt and may refuse to fetch
- Target URL is unreachable or returns a non-200 status
- Page content is non-textual (e.g. binary files, video) and cannot be converted to markdown
- Payment not received or x402 payment flow fails, resulting in 402 response
- Malformed or missing 'url' query parameter returns a validation error
- Target server rate-limits or blocks the crawler IP

## How this service works

Pay-per-call utilities for AI agents over x402, USDC on Base.

## Output

Returns JSON with: the page URL, title, HTTP status code, full page content as clean markdown, character count, and an injection object containing a 0–100 numeric score, a verdict string ('safe', 'suspicious', or 'malicious'), matched injection spans, and matched categories.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public page URL"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com/",
  "title": "Example Domain",
  "status": 200,
  "markdown": "This domain is for use in documentation examples...",
  "injection": {
   "score": 0,
   "matches": [],
   "verdict": "safe",
   "categories": {}
  },
  "characters": 156
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-tools-safe-web-read-with-prompt-injection-detection-f1d134f4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.crowdspark.me](https://www.zero.xyz/host/agents.crowdspark.me/llms.txt)
