gitlab_search_code
Search across GitLab projects for code snippets, files, and documentation using keywords and optional filters like project path or file path to narrow results.
Instructions
在 GitLab 项目中全局搜索代码 (通用)
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": {
"query": "<query>"
},
"name": "gitlab_search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | 搜索关键词 | |
| project | No | 项目路径 (默认: 后端项目) | |
| filePath | No | 限定文件路径 (如 entity/、service/) | |
| maxResults | No | 最大结果数 (默认 20) |