git_diff
Displays Git changes between the working tree, index, or commits, with optional staged-only and path filtering to inspect modifications before committing.
Instructions
Show git diff (optionally staged and/or for one 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 | ||
| repo | No | . | |
| staged | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |