create_mr_note
Add a comment to a GitLab merge request. Supports Markdown content and file attachments by replacing placeholders with uploaded images or files.
Instructions
Add a new top-level comment to 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>",
"body": "<body>"
},
"name": "create_mr_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The content of the comment (supports Markdown). Use {{placeholderName}} syntax to embed attachments. | |
| 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 |