bb_search_code
Search code across a Bitbucket workspace, using filters for repository, language, and file extension to locate specific code snippets.
Instructions
Search for code content within a workspace. Supports filtering by repository, language, and file extension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination | |
| filter | No | JMESPath expression to filter/transform structured response data. Applied before format conversion. Example: "values[].{name: full_name, lang: language}" — see https://jmespath.org for syntax | |
| pagelen | No | Number of items per page (max 100) | |
| language | No | Filter code search by programming language | |
| extension | No | Filter code search by file extension | |
| repo_slug | No | Repository slug to limit search to specific repository | |
| workspace | Yes | The workspace to search in | |
| search_query | Yes | Search query for code content | |
| output_format | No | Response format: "text" (default, human-readable), "json" (structured JSON), or "toon" (Token-Oriented Object Notation — compact tabular format that reduces LLM token consumption by 30-60%) |