scan_file
Scan individual files for security vulnerabilities immediately after editing. Detects flaws in AI-generated code across Next.js, Supabase, and 20+ frameworks. Returns clean JSON findings without boilerplate.
Instructions
Scan a single file from disk for security vulnerabilities. Returns only findings (no boilerplate). Designed for real-time use: call this after editing a file to catch security issues immediately. Lightweight and fast — reads the file, detects language, and returns findings in JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute or relative path to the file to scan | |
| format | No | Output format | json |