bb_search_code
Search for code in a Bitbucket workspace or repository using a search query. Paginate through results to find the code you need.
Instructions
Search for code in a Bitbucket workspace or repository
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": "bb_search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination | |
| query | Yes | Search query string | |
| pagelen | No | Number of results per page (max 100) | |
| repo_slug | No | Repository slug (searches workspace-wide if not provided) | |
| workspace | No | Bitbucket workspace slug (uses default if not set) |