git_diff
Show Git changes between commits, working tree, or index. Optionally restrict to a file or get a summary.
Instructions
Show changes between commits, working tree, or index.
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 |
|---|---|---|---|
| staged | No | If True, show staged (indexed) changes only. | |
| file_path | No | Restrict diff to a specific file or directory. | |
| stat_only | No | If True, show only a summary (files changed, lines). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||