create_merge_request_thread
Start a discussion thread on a GitLab merge request to provide feedback, ask questions, or collaborate on code changes with team members.
Instructions
Create a new thread on a merge request
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 | |
| body | Yes | The content of the thread | |
| position | No | Position when creating a diff note | |
| created_at | No | Date the thread was created at (ISO 8601 format) |
Implementation Reference
- schemas.ts:1253-1261 (schema)Zod schema defining the input parameters for the 'create_merge_request_thread' tool, including project_id, merge_request_iid, body, optional position for diff notes, and optional created_at timestamp.export const CreateMergeRequestThreadSchema = ProjectParamsSchema.extend({ merge_request_iid: z.number().describe("The IID of a merge request"), body: z.string().describe("The content of the thread"), position: MergeRequestThreadPositionSchema.optional().describe( "Position when creating a diff note" ), created_at: z.string().optional().describe("Date the thread was created at (ISO 8601 format)"), });