scan_file
Scan a file on disk for security vulnerabilities by passing its path. Returns findings with confidence and optional exact edits.
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'})
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 |