scan_snippet
Scan a code snippet for security issues before saving it to disk. Ideal for auth, payment, database, file/URL handling, and AI-calling code.
Instructions
Check a piece of code before writing it to disk (no project needed).
Use it for auth, payment, database, file/URL handling and AI-calling code.
Args: code: Source code to check. filename: Realistic path; it drives language and context detection (e.g. app/api/users/route.ts, components/Form.tsx, supabase/migrations/001.sql, app.py). runtime: Where the code runs. "client" = shipped to browsers/apps; "auto" guesses from filename/directives.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| runtime | No | auto | |
| filename | No | snippet.ts |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||