detect_template_injection
Detect server-side template injection in templates or dynamic content before rendering, flagging dangerous Jinja2, Handlebars, ERB syntax and RCE payloads.
Instructions
Prevent Server-Side Template Injection (SSTI). Identifies dangerous template syntax from Jinja2, Handlebars, ERB, and others. Flags RCE payloads like {{config.class}}. Scan user-provided templates or dynamic content before rendering.
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": "detect_template_injection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Validation mode (default: strict) | |
| content | Yes | The string or code content to analyze | |
| sensitivity | No | Detection sensitivity (default: high) |