git_diff
Compare the current worktree against a specific commit while omitting protected file patches; optionally set a repository path that matches the server’s fixed repository.
Instructions
Compare worktree with a commit, omitting protected file patches. 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": {
"target": "<target>"
},
"name": "git_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 |