scan_prompt_injection
Inspect untrusted GitHub text, PR diffs, READMEs, or tool output for prompt-injection and secret-exfiltration patterns before an AI agent acts, returning an ALLOW/WARN/BLOCK verdict and risk score.
Instructions
Scan untrusted GitHub issue text, PR diffs, READMEs, or tool output for indirect prompt-injection, instruction override, and secret-exfiltration patterns before an AI agent acts on it. Returns a deterministic ALLOW/WARN/BLOCK verdict, risk score (0-100), and matched rule IDs without modifying any external state.
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": "scan_prompt_injection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Raw untrusted text or markdown content to inspect for prompt-injection patterns. | |
| source | No | Optional human-readable source identifier (for example, a GitHub issue URL or file path) echoed in the report. |