gitlab_get_file
Retrieve a file from a GitLab repository by providing project ID, file path, and optional branch, tag, or commit SHA.
Instructions
Get repository file by GitLab REST API /repository/files/:file_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | GitLab project ID. Omit this field unless the user explicitly provided a value. When omitted, the current runtime config value is used (WORKFLOW_CODE_PROJECT_ID overrides the built-in default when configured). If the runtime config is still unset, the tool returns a missing-parameter error. Do not infer or auto-generate this value. | |
| file_path | No | Repository file path. | |
| ref | No | Branch/tag/SHA to read. Optional; when omitted GitLab HEAD is used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded. | |
| tool | Yes | Tool name. | |
| data | No | GitLab file payload with decoded content. | |
| error_type | No | Error type when ok=false. | |
| message | No | Error message when ok=false. |