gitlab_get_file
Retrieve file contents from a GitLab repository by specifying path, branch/tag/commit, and project.
Instructions
Retrieve the contents of a file from the repository.
Args: file_path: Path to the file within the repo, e.g. 'src/main.py'. ref: Branch, tag, or commit SHA (default 'HEAD'). project_path: GitLab project path, e.g. 'group/project'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | HEAD | |
| file_path | Yes | ||
| project_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |