Review Diff
review_diffAnalyze code diffs with deterministic preflight checks and structured JSON findings. Supports optional AI review and static analysis.
Instructions
Enterprise-grade diff-first review with deterministic preflight and structured JSON output.
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": {
"diff": "<diff>"
},
"name": "review_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | Unified diff content | |
| task | No | Return a task ID and track review progress without blocking (default: false) | |
| options | No | ||
| base_sha | No | Optional base commit SHA | |
| head_sha | No | Optional head commit SHA | |
| background | No | Run review without blocking the tool call (default: false) | |
| changed_files | No | Optional list of changed file paths |