show_file_diff
Compare changes in a specific file between two git branches to view exact differences.
Instructions
Show specific changes in a file between branches
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>",
"filename": "<filename>"
},
"name": "show_file_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repoPath | Yes | Path to the git repository | |
| filename | Yes | Path to the file relative to the repository root | |
| fromBranch | No | Branch to compare from (default: main/master) | |
| toBranch | No | Branch to compare to (default: current) |