git_diff
View unstaged or staged changes in a repository to review modifications before committing.
Instructions
View the diff of unstaged or staged changes in 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": {
"repo": "<repo>"
},
"name": "git_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| repo | Yes | ||
| commit | No | Optional commit ref or range to diff against. | |
| staged | No | ||
| max_chars | No |