Scan text for prompt injection (paid)
scan_textPrompt-injection pre-check for text your agent is about to read (tool output, web page, email, document, token names/metadata). Deterministic rules, no LLM: instruction override (EN/DE/FR/ES/IT/PT/PL/RU), role hijack, jailbreaks, system-prompt extraction, fake chat delimiters, text addressed to the AI, concealment, data exfiltration (markdown-image beacons, secrets to URLs), tool/fund hijack (shell pipes, transfers, unlimited approvals, skip-confirmation), crypto lures (seed-phrase requests, claim/airdrop links), hidden text (zero-width, Unicode tag and variation-selector smuggling, bidi, homoglyphs, CSS-hidden HTML, ANSI) and encoded payloads (base64/hex/percent decoded and re-scanned). Returns verdict safe/suspicious/malicious, action allow/treat_as_untrusted_data/block, 0-100 score, findings with character spans, risky links, decoded payloads and a sanitized copy. Batch up to 100 texts per call. Costs $0.002 USDC per call via x402 (charged only on success). Without an x402 wallet you get the payment terms and the paid HTTP URL instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "scan_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text to scan, up to 100000 characters. Use either text or items. | |
| items | No | Batch: up to 100 texts (e.g. token names, search results, emails), 200000 characters in total, one price. | |
| source | No | Where the text comes from; tunes a few rules (token_metadata flags any URL in a token name). | |
| sanitize | No | Return `sanitized`: the text with invisible characters removed and injected instructions replaced by a marker. Default true. |