Get merge request file patch
get_merge_request_file_patchRetrieve the patch for a specific file in a GitLab merge request by scanning paginated diffs, returning patch metadata and hunks.
Instructions
Find one exact changed path across paginated merge-request diffs and return its patch metadata and hunks.
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": {
"project": "<project>",
"merge_request_iid": "<merge_request_iid>",
"path": "<path>"
},
"name": "get_merge_request_file_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| unidiff | No | ||
| max_pages | No | ||
| merge_request_iid | Yes | Project-scoped internal ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |