gemini_review
Review files or a git diff to surface concrete issues with file:line locations, severity, and suggested fixes, returning both a written review and structured findings.
Instructions
Have Gemini review files and/or a git diff and list concrete issues (file:line, severity, suggested fix). Returns the written review plus structured findings. Give files, a diff, or both.
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": "gemini_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | Attach a git diff: "staged" (index vs HEAD), "working" (unstaged), "HEAD" (all uncommitted changes), a ref, or a range like "main...HEAD". Counts against the size limit. | |
| files | No | Paths relative to the project root (max 20 files, 500 KB total). Also accepts line ranges (src/a.ts:40-120), directories (src/) and globs (src/**/*.ts); globs and directories respect .gitignore. Contents are inlined into the prompt. | |
| focus | No | Optional focus, e.g. "security", "performance", "readability". | |
| model | No | Model ID as listed by `agy models`; the suffix is the reasoning effort, e.g. gemini-3.8-flash-low | -medium | -high. Omit to use the configured default (.zwilling.json, else agy's). Higher effort is slower. | |
| timeout_s | No | Timeout for this call in seconds (default 120). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parsed | Yes | False if Gemini's answer had no parsable findings block; then `findings` is empty. | |
| findings | Yes |