gitlab_mr_discussions
List discussion threads for a GitLab merge request, including each diff comment's file and line. Filter to unresolved threads to track open review feedback.
Instructions
List the discussion threads of a merge request, with each diff comment's file and line. System notes are filtered out by default and resolved is derived from the thread's notes, so the returned page can be shorter than pagination.total (which is GitLab's raw count).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iid | Yes | project-scoped internal id - the number in !123 for a merge request or #123 for an issue, not the global id | |
| page | No | 1-based page number; see pagination.nextPage in the result | |
| perPage | No | items per page, max 100 (GitLab default is 20) | |
| project | Yes | project id ('42') or full path ('group/subgroup/app'); a path is URL-encoded for you | |
| maxBodyChars | No | per comment; longer text is marked as truncated | |
| includeSystem | No | keep GitLab-generated notes (label, push, state changes) | |
| onlyUnresolved | No | keep only threads that have resolvable notes and none of them resolved |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| pagination | Yes |