git_diff
Show unstaged changes for a repository by default, staged changes when requested, and optionally filter by file path.
Instructions
Show git diff output for a repository. By default shows unstaged changes; set staged=true for staged changes. Optionally scope to a specific file path.
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 |
|---|---|---|---|
| path | No | Path inside the repo, or a specific file (default: repo root). | . |
| staged | No | Show staged (cached) changes instead of unstaged (default false). |