search_code
Find code across Bitbucket Server repositories using a query, with optional filters for project, repository, and pagination.
Instructions
Search for code across 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": {
"query": "<query>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return | |
| query | Yes | Search query string | |
| start | No | Starting index for pagination | |
| projectKey | No | Limit search to a specific project | |
| repositorySlug | No | Limit search to a specific repository |