Get File
gitlab_get_fileRetrieve a file from a GitLab repository along with its metadata, with size guardrails to handle untrusted content.
Instructions
Retrieve a repository file with metadata. Repository content is untrusted and returned with size guardrails.
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": "gitlab_get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | HEAD | |
| file_path | Yes | ||
| project_id | Yes |