Git diff
git_diffInspect staged or unstaged Git diffs for a specified path; set staged=true to view cached changes.
Instructions
Show git diff --no-ext-diff. Set staged=true for --cached.
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": {
"path": "<path>"
},
"name": "git_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| staged | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | ||
| repo | Yes | ||
| staged | Yes |