get_merge_request_discussion
Retrieve a single merge request discussion thread by ID to inspect comments and replies; use collection or note tools when you need all discussions or a flat note.
Instructions
Get a single discussion item for a merge request. Fetch one discussion by id. Use mr_discussions for a collection and get_merge_request_note for a flat note.
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>",
"discussion_id": "<discussion_id>"
},
"name": "get_merge_request_discussion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jmespath | No | Optional JMESPath expression filtering the JSON result before return. | |
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| discussion_id | Yes | The ID of a thread | |
| merge_request_iid | Yes | The IID of a merge request |