gitlab_get_repository_file
Retrieve the content of a specific file from a GitLab repository. Provide the project ID, file path, and branch/tag/commit reference to access file data directly.
Instructions
Get content of a file in a 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": "gitlab_get_repository_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path of the file in the repository | |
| project_id | Yes | The ID or URL-encoded path of the project | |
| ref | No | The name of branch, tag or commit |