get_file_diff
Get the unified diff of a file in a Gerrit change, including added, removed, and modified lines with context.
Instructions
Get the diff of a specific file in a Gerrit change. Returns the unified diff content including added, removed, and modified lines with context.
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": {
"change_id": "<change_id>",
"file_path": "<file_path>"
},
"name": "get_file_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| change_id | Yes | Gerrit change ID (numeric, 'project~branch~changeId', or full Change-Id) | |
| file_path | Yes | File path within the change | |
| revision_id | No | Revision ID (defaults to 'current') | current |