search_code
Search for code across all repositories in a Bitbucket Cloud workspace to find specific code snippets, functions, or patterns.
Instructions
Search for code across all repositories in a workspace.
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": {
"workspace": "<workspace>",
"search_query": "<search_query>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | The workspace slug | |
| search_query | Yes | Search query string | |
| page | No | Page number | |
| pagelen | No | Results per page |