get_file_content
Retrieves the content of a specified file in a GitLab project on a given branch or tag, letting AI assistants inspect repository files for code review and analysis.
Instructions
获取指定项目的文件内容
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": {
"projectPath": "<projectPath>",
"filePath": "<filePath>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | 分支或标签,默认为 main | main |
| filePath | Yes | 文件路径 | |
| projectPath | Yes | 项目路径,格式: owner/repo |