git_diff
Compare Git changes to identify differences between commits, branches, or working directory states for code review and version control.
Instructions
Show git diff
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_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | No | Specific file to diff (optional) | |
| staged | No | Show staged changes | |
| cwd | No | Working directory (optional, defaults to project root) |