get_file_content
Retrieve file content and metadata from CERN GitLab repositories for code analysis, documentation review, or dependency checking in High Energy Physics projects.
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
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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') | |
| ref | No | Branch name, tag, or commit SHA (default: project's default branch) |