Safe Read: read a web page with prompt-injection protection (hidden traps for AI agents detected and removed)
safe_read_urlReads a page like /read but first scans it for prompt injection aimed at AI agents: hidden text (display:none, zero-size or off-screen elements, HTML comments, attributes), invisible Unicode (tag-character smuggling, zero-width), base64-encoded orders, fake system/chat markers, and visible text that tells AI agents to ignore instructions, leak secrets, run commands or redirect payments. Returns cleaned content plus a risk score (0-100), risk level and every finding with its location. mode=strip (default) removes dangerous lines; mode=flag keeps them and only reports. deep=true adds an AI review. Not charged if the page cannot be read. Price 0.003 USDC per call; first 3 calls per day free.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "safe_read_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http(s) URL to read safely | |
| deep | No | Also run an AI review for subtle injections (slower) | |
| mode | No | strip (default) removes risky text; flag only reports it | |
| format | No | Output format (default markdown) | |
| render | No | Force browser (JavaScript) rendering | |
| payment | No | Optional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts. |