get_mr_diff
Retrieve the file changes and diff summary of a merge request. Provides diff refs needed to create line-positioned discussions.
Instructions
Get the file changes (diff summary) of a merge request. Returns diff_refs (base_sha/head_sha/start_sha) needed to create line-positioned discussions via create_mr_discussion.
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>",
"mr_iid": "<mr_iid>"
},
"name": "get_mr_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| mr_iid | Yes | MR IID |