get_file_contents
Retrieve file or directory contents from a GitLab project repository using project ID or namespace and path, with optional branch, tag, or commit reference.
Instructions
Read file or directory content from a project repository
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch name, tag, or commit SHA (default: default branch / HEAD) | |
| file_path | Yes | Path to the file or directory in repo (e.g. 'pom.xml' or 'docs/README.md') | |
| project_id | Yes | Project numeric ID (e.g. 31) or namespace path (e.g. 'group/project-name'). URL-encoding is handled automatically. |