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.
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 |