Get Git Diff
get-git-diffRetrieve line-by-line Git differences from a repository. Optionally include staged changes or focus on a single file.
Instructions
Get all difference in files and show the differences line by line. It can focus on a specific file according to willingness
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": {
"repoPath": "<repoPath>"
},
"name": "get-git-diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cached | No | Show difference that are taken to stage | |
| repoPath | Yes | GitHub repository path | |
| targetFile | No | Show difference only this file |