git_diff
Read unstaged or staged Git diffs, optionally for a specific file, to inspect pending changes with output capped at 96 KB.
Instructions
Read unstaged or staged Git diffs; outputs are limited to 96 KB.
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 |
|---|---|---|---|
| file | No | Optional file path | |
| staged | No | Show staged changes |