get_file
Retrieve the raw content of a file from a GitLab repository by specifying the project ID, file path, and optionally a branch or tag.
Instructions
Get the content of a file from the repository.
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": {
"project_id": "<project_id>",
"file_path": "<file_path>"
},
"name": "get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| file_path | Yes | File path in repository | |
| ref | No | Branch or tag (default: main) |