Inline MR diff comment
gitlab_add_mr_inline_commentCreate a review thread on a specific diff line in a GitLab merge request by adding an inline comment. Requires file path, comment text, and optionally line numbers.
Instructions
Creates a review thread on a specific diff line (file + new_line or old_line). Requires write permissions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Comment text. | |
| new_line | No | Line in the new file (additions/changes). | |
| new_path | No | New path if the file was renamed; default=file_path. | |
| old_line | No | Line in the old file (deletions). | |
| old_path | No | Old path if the file was renamed; default=file_path. | |
| file_path | Yes | File path in the diff (e.g. src/app.ts). | |
| repo_path | No | Absolute local clone path; resolves project and MR from current branch. | |
| project_id | No | Numeric ID or group/repo path on GitLab. | |
| merge_request_iid | No | Merge request IID. Omit with repo_path to resolve from current branch. |