get_merge_request_diffs
Retrieve code changes and differences for GitLab merge requests to review modifications between branches or versions.
Instructions
Get the changes/diffs of a merge request (Either mergeRequestIid or branchName 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 |
|---|---|---|---|
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| merge_request_iid | No | The IID of a merge request | |
| source_branch | No | Source branch name | |
| view | No | Diff view type |