Git diff
git_diffDisplay uncommitted or staged changes in a git repository.
Instructions
Show uncommitted changes (or staged changes with staged=true) for a repository.
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 |
|---|---|---|---|
| result | Yes |