update_mr_note
Update a merge request comment with new Markdown content, using placeholder syntax to embed images from local files.
Instructions
Update the content of an existing top-level note (comment) on a merge request. Supports embedding images/files via attachments parameter.
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>",
"merge_request_iid": "<merge_request_iid>",
"note_id": "<note_id>",
"body": "<body>"
},
"name": "update_mr_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | New content for the note (supports Markdown). Use {{placeholderName}} syntax to embed attachments. | |
| note_id | Yes | The ID of the note to update | |
| project_id | Yes | Project ID or path | |
| attachments | No | Map of placeholder names to local file paths. Each file is uploaded and {{placeholderName}} in body is replaced with the GitLab markdown. Example: {"screenshot": "/tmp/screenshot.png"} replaces {{screenshot}} with  | |
| merge_request_iid | Yes | Merge request internal ID |