Get File Contents
gitlab_get_file_contentsFetch file contents from a GitLab repository by path and optional ref to inspect source, config, or docs without cloning.
Instructions
Get a file in repository by path and ref.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "gitlab_get_file_contents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| file_path | Yes | ||
| project_id | No | ||
| decode_base64 | No |