get_file_content
Retrieve file content from a CERN GitLab repository, including metadata like size, encoding, and language hint. Detects binary files without decoding them.
Instructions
Retrieve the content of a specific file from a CERN GitLab repository. Returns the file content along with metadata like size, encoding, and a language hint for syntax highlighting. Binary files are detected and reported without attempting to decode them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch name, tag, or commit SHA (default: project's default branch) | |
| project | Yes | Project identifier — either a numeric ID (e.g. '12345') or a path (e.g. 'atlas/athena') | |
| file_path | Yes | Path to the file within the repository (e.g. 'src/main.py') |