git_diff
Retrieve git diff or staged diff for a specified root directory, with optional byte truncation.
Instructions
Return git diff or git diff --staged for an allowed root with byte truncation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"root": "<root>"
},
"name": "git_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | Absolute configured allowed root. | |
| staged | No | ||
| maxBytes | No |