scan_file_for_threats
Deep-scans a single file for shell, SQL, path, template and prompt injection threats, returning exact line numbers and risk levels so generated or uploaded code is validated before execution.
Instructions
Deep-scan a single file for all 5 threat types (shell, SQL, path, template, prompt injection). Returns exact line numbers and risk levels. Use when generating new code or processing uploaded files to ensure safety before execution.
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": {
"filePath": "<filePath>"
},
"name": "scan_file_for_threats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Validation mode (default: strict) | |
| filePath | Yes | Path to the file to scan | |
| sensitivity | No | Detection sensitivity (default: high) |