scan_file
Detect security vulnerabilities in a single on-disk file by passing its path; use for file-based scans instead of inline code snippets.
Instructions
Scan a single file on disk by path for security vulnerabilities. Pass a file path — the tool reads the file itself. For inline code snippets, use check_code instead. The 'agent' format returns the structured guardvibe.agent.v1 contract (finding + exact edit + confidence + verify step). Example: scan_file({file_path: 'src/api/route.ts', format: 'agent'})
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": {
"file_path": "<file_path>"
},
"name": "scan_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format. 'agent' = machine-actionable guardvibe.agent.v1 (exact edits + confidence + verify) | json |
| file_path | Yes | Absolute or relative path to the file to scan |