get_git_diff
Retrieve git diff output for any repository, with options to filter by file, compare branches, or show staged changes.
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_path": "<repository_path>"
},
"name": "get_git_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Branch to compare against | |
| staged | No | Show only staged changes | |
| file_path | No | Specific file to diff | |
| repository_path | Yes | Repository path |