gemini_pr_review
Review pull request or branch diffs with Gemini by auto-fetching Git changes and optionally adding full changed-file content for deeper context and focused feedback.
Instructions
Review a pull request or branch diff using Gemini. USE THIS TOOL WHEN: (1) You want to review all changes in a PR or feature branch before merging. (2) You need a thorough review of a large diff that would consume too many tokens. (3) You want to compare changes between two branches or commits. This tool automatically fetches the git diff and optionally collects the full content of changed files for deeper context. It differs from gemini_review: this tool is git-aware and fetches diffs automatically, while gemini_review requires you to pass in the diff or file content manually.
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": {
"repo_path": "<repo_path>"
},
"name": "gemini_pr_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base branch or commit to compare against. Defaults to "main". Examples: "main", "develop", "HEAD~5", "abc1234". | |
| head | No | Head branch or commit to review. Defaults to "HEAD" (current branch). Examples: "feature/auth", "HEAD", "def5678". | |
| model | No | Override the default Gemini model. If omitted, uses the server default. | |
| repo_path | Yes | Absolute path to the git repository. REQUIRED — always provide the project root path. | |
| review_focus | No | What aspect to focus on. Examples: "security", "performance", "error handling", "API design", "backward compatibility". If omitted, performs a general-purpose review. | |
| include_file_content | No | If true, also sends the full content of changed files (not just the diff) for deeper context. Useful for complex refactors. Defaults to false. |