get_gerrit_patchset_file
Retrieve file content from Gerrit patchsets to review code changes in Chromium development.
Instructions
Get the content of a specific file from a Gerrit patchset for making code changes
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": {
"cl_number": "<cl_number>",
"file_path": "<file_path>"
},
"name": "get_gerrit_patchset_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cl_number | Yes | CL number or full Gerrit URL (e.g., '6624568' or 'https://chromium-review.googlesource.com/c/chromium/src/+/6624568') | |
| file_path | Yes | Path to the file to get content for (e.g., 'chrome/browser/ui/browser.cc') | |
| patchset | No | Optional specific patchset number (if not specified, gets file from current patchset) |