veto_code_review
Analyzes code snippets to detect complexity, error handling, magic numbers, nesting, and dead code, returning scored findings with severity and suggested fixes. Optionally outputs inline diagnostics in VS Code when file_path is provided.
Instructions
Runs the Code Reviewer agent on a single snippet or file you pass directly. Returns scored findings (complexity, error handling, magic numbers, nesting, dead code) with severity and fixes. Pass file_path to surface findings as VS Code inline diagnostics (squiggles). For reviewing changed files across a git diff, use veto_diff_review instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code to review. | |
| context | No | Optional: file name, module description, or review focus. | |
| file_path | No | Optional: absolute path to the file being reviewed. When provided, findings are stored as VS Code inline diagnostics. | |
| agent_response | No | Phase 2 response from the host AI (JSON). Pass this back when prompted by the server to complete the agentic loop. |