git_diff_revisions
Compare two committed Git revisions and filter changes to permitted literal paths, so you can inspect only policy-allowed differences.
Instructions
Compare two committed trees, filtering complete changes by permitted literal paths. Omit repo_path to use the configured repository. Results and operations are restricted according to project policy.
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": {
"base": "<base>",
"target": "<target>"
},
"name": "git_diff_revisions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | ||
| paths | No | ||
| target | Yes | ||
| repo_path | No | Optional repository root. Omit to use the server's fixed repository. An explicit path must identify that same repository. | |
| context_lines | No |