git_diff
Inspect git diff in a repository before committing changes, optionally viewing staged changes only.
Instructions
Inspect git diff in a repository before committing mutations.
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": {
"repository": "<repository>"
},
"name": "git_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| staged | No | Whether to view staged diff only | |
| repository | Yes | Repository name |