get_merge_request_diffs
Retrieve the changes/diffs of a GitLab merge request by providing its internal ID or source branch.
Instructions
Get the changes/diffs of a merge request. Either merge_request_iid or source_branch must be provided.
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_id": "<project_id>"
},
"name": "get_merge_request_diffs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | Diff view type | |
| project_id | Yes | Project ID or path | |
| source_branch | No | Source branch name (alternative to merge_request_iid) | |
| merge_request_iid | No | Merge request internal ID |