guard_injection
guard_injectionPrompt-injection detector for text an agent is about to feed to a model: tool results, scraped pages or user input. Rules and heuristics only, no LLM, fast and deterministic. Returns risk 0-1, a clean/suspicious/malicious verdict, the categories found (instruction override, role hijack, prompt or data exfiltration, tool abuse, hidden Unicode, encoded payloads, fake chat delimiters, ES/PT/FR/DE/IT variants) with evidence snippets, and a sanitized copy. POST with JSON {text, context} also works. Price: $0.002 USDC per call (x402).
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": {
"text": "<text>"
},
"name": "guard_injection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to inspect, up to 200 KB | |
| context | No | Where the text comes from: tool_output, user_input (default) or web_page |