getGitDiff
Retrieve the git diff output for your workspace or a specific file. Optionally show staged changes and control context lines length.
Instructions
Get the git diff output for the workspace or a specific file
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": "getGitDiff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| staged | No | Show staged (cached) changes. Default: false | |
| context | No | Number of context lines around changes. Default: 3 | |
| filePath | No | Filter diff to a single file (absolute or workspace-relative) |