git_diff
Inspect Git working-tree or staged changes without executing shell commands, optionally limiting output to specific repository paths and returning only statistics.
Instructions
Read the Git working-tree or staged diff without running a shell command, optionally limited to specific paths.
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 | Git repository directory; defaults to the workspace. | |
| paths | No | Limit the diff to these repository paths. | |
| staged | No | Read the staged diff instead of the working-tree diff. | |
| max_bytes | No | Maximum diff bytes. | |
| stat_only | No | Return only diff statistics. | |
| context_lines | No | Lines of context around each hunk. |