gitlab_get_repository_file
Fetch a file's content from any GitLab project by providing project ID and file path, with optional branch, tag, or SHA to target a specific version. Returns base64-encoded content.
Instructions
File contents (GET /repository/files/:path). content is base64.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or SHA. Default: the project's default HEAD. | |
| filePath | Yes | ||
| projectId | Yes | Numeric ID or path with namespace, e.g. group/project. |