git_review_diff
Run automated AI code review on git diff to detect security leaks, dangerous calls, code smells, and missing tests. Optionally specify target branch or staged changes.
Instructions
Perform an automated AI code review on git diff. Scans for security leaks, dangerous calls, code smells, and missing tests.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "git_review_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Target repository directory path | |
| stagedOnly | No | Analyze only staged changes. | |
| targetBranch | No | Base branch to compare against (e.g. 'main' or 'origin/main'). If omitted, reviews local uncommitted changes. |