git_diff
View git diff output for unstaged, staged, or any commit. Optionally restrict to a specific file.
Instructions
View git diff (unstaged, staged, or specific commit).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "git_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Optional commit ref or --staged | |
| file | No | Optional specific file | |
| project | No | Project name |