search_code
Search GitLab repositories for code matching your query using GitLab's code search syntax. Control results with pagination and per-page settings.
Instructions
Search for code across GitLab repositories
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": {
"q": "<q>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search query (see GitLab code search syntax) | |
| page | No | Page number | |
| perPage | No | Results per page |