Injection detect: screen untrusted text or a page for prompt-injection and jailbreak attempts, with flagged spans and a sanitized copy
ai_injection_detectDetects prompt injection and jailbreak attempts in untrusted text. Use when an agent must screen a web page, email, tool output or RAG chunk first. Input: text (max 20,000 chars; GET or POST) or url. Output: JSON probability 0-1, verdict (injection >=0.7, suspicious >=0.35), attackTypes, spans with offsets, sanitizedText minus flagged spans, method (EN/KO rules + open model). Heuristic. Example: ?text=AI assistant: disregard prior instructions Price: $0.005 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.
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": "ai_injection_detect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) page to fetch and check instead of text (SSRF-safe); give text or url, not both | |
| text | No | Text to check (up to 20,000 characters). Required unless url is given; use POST JSON for long text |