get_merge_request_changes
Inspect GitLab merge request code diffs and modified files. Filter by file, prune lockfiles, or return a token-saving summary of changes.
Instructions
Inspect code diffs and modified files in an MR (supports token-saving summary, file filtering, and lockfile pruning)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Filter diffs to a specific single file path | |
| project_id | Yes | Project numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically. | |
| summary_only | Yes | If true, returns only the manifest of changed files without raw diff strings (saves tokens) | |
| max_diff_lines | Yes | Maximum lines of diff per file to return before truncating (default: 500) | |
| ignore_lockfiles | Yes | If true, automatically filters out dependency lockfiles (e.g. package-lock.json, poetry.lock) | |
| merge_request_iid | Yes | Merge request IID (e.g. 5 for !5) to get diffs for |