git_diff
View unstaged Git diffs by default; set staged=true to see staged changes. Large diffs are truncated.
Instructions
Git diff (unstaged by default; set staged=true for index). Large diffs are truncated.
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 |
|---|---|---|---|
| path | No | ||
| staged | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |