scan_prompt
Detects prompt injection, jailbreaks, and role hijacking in user input, returning a risk score and identified threats to support secure AI interactions.
Instructions
Scan a prompt or user input for injection attacks (jailbreaks, prompt injection, role hijacking). Returns risk score and detected threats.
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": "scan_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The prompt or user input text to scan for injection attacks | |
| agent_id | No | Optional agent ID for tracking |