Diff
git_diffShow differences between two revisions or the working tree and HEAD, with optional path filtering and a stat-only mode for a quick change overview.
Instructions
Diff between two revisions (or the working tree against HEAD when base is omitted). Use stat_only for a quick overview.
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 |
|---|---|---|---|
| base | No | ||
| head | No | ||
| path | No | ||
| repo | No | Path to the repository (or a folder inside it). Defaults to the first allowed root. | |
| max_chars | No | ||
| stat_only | No |