Search GitLab repository code
search_codeSearch GitLab project blobs to locate code snippets, filenames, symbols, or error text.
Instructions
Search blobs in a specific GitLab project. Use plain code terms, filenames, symbols, or error text.
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": "<project>",
"search": "<search>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| page | No | ||
| search | Yes | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| per_page | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |