update_merge_request_note
Modify or resolve existing comments in GitLab merge request discussions to update feedback and track issue resolution.
Instructions
Modify an existing merge request thread note
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| merge_request_iid | Yes | The IID of a merge request | |
| discussion_id | Yes | The ID of a thread | |
| note_id | Yes | The ID of a thread note | |
| body | No | The content of the note or reply | |
| resolved | No | Resolve or unresolve the note |
Implementation Reference
- schemas.ts:749-761 (schema)Zod input schema for the 'update_merge_request_note' tool, validating parameters for updating a note in a merge request discussion thread using GitLab API.export const UpdateMergeRequestNoteSchema = ProjectParamsSchema.extend({ merge_request_iid: z.number().describe("The IID of a merge request"), discussion_id: z.string().describe("The ID of a thread"), note_id: z.number().describe("The ID of a thread note"), body: z.string().optional().describe("The content of the note or reply"), resolved: z.boolean().optional().describe("Resolve or unresolve the note"), }) .refine(data => data.body !== undefined || data.resolved !== undefined, { message: "At least one of 'body' or 'resolved' must be provided", }) .refine(data => !(data.body !== undefined && data.resolved !== undefined), { message: "Only one of 'body' or 'resolved' can be provided, not both", });