gitlab_get_merge_request_changes
List changed files in a GitLab merge request with truncated diffs for code review. Shows what changed in a specific MR, with full file content available via gitlab_get_file.
Instructions
List changed files in a merge request with truncated diffs (2KB per file).
Useful for code-review-style queries ("what changed in !42?"). Diffs beyond
2KB are truncated — fetch the raw file via gitlab_get_file for full
content.
Examples:
- "What did MR !42 change" → mr_iid=42
- If you need full content of a changed file, use gitlab_get_file
with the MR's source branch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mr_iid | Yes | Merge request IID. | |
| project_path | No | GitLab project path (e.g. 'my-org/my-repo'). When omitted, the default from GITLAB_PROJECT_PATH env var is used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mr_iid | Yes | ||
| title | Yes | ||
| files_count | Yes | ||
| files | Yes |