File Content
get_file_contentRetrieve the contents of a file from a GitLab repository by specifying project, file path, and Git reference. Enables code analysis and inspection.
Instructions
Get the content of a specific file from a GitLab repository - crucial for code analysis
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Full path of the project (e.g., "group/project-name") | |
| filePath | Yes | Path to the file within the repository (e.g., "src/main.js") | |
| ref | No | Git reference (branch, tag, or commit SHA) | HEAD |
| userCredentials | No | Your GitLab credentials (optional — falls back to the configured env token if not provided) |