git_diff
View line-by-line code changes in your Git repository, showing unstaged differences by default. Optionally inspect staged changes.
Instructions
Run git diff to see exact line-by-line code changes. Shows unstaged changes by default.
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 |
|---|---|---|---|
| staged | No | If true, runs git diff --staged to see staged changes. |