prompt_injection_scanner__scan_text
Scans text from RAG chunks, web pages, documents, or tool results to detect indirect prompt injection payloads before content reaches a model's context.
Instructions
Scan a text string — a RAG chunk, a scraped web page, a document, a tool result — for indirect prompt injection payloads (instruction-override phrases, spoofed chat-template roles, hidden/invisible text, content addressing 'the AI' directly, data-exfiltration attempts) before it reaches a model's context.
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": {
"content": "<content>"
},
"name": "prompt_injection_scanner__scan_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional label shown in findings (e.g. source URL or filename) | |
| content | Yes | The text content to scan |