bb_browse_repository
Browse files and directories in a Bitbucket repository to explore its structure, using optional branch, path, and filter settings.
Instructions
Browse files and directories in a repository to explore structure
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>",
"repo_slug": "<repo_slug>"
},
"name": "bb_browse_repository"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or commit hash (defaults to main branch) | |
| path | No | Directory path within the repository (default: repo root) | |
| limit | No | Maximum number of items to return (default: 50, max: 100) | |
| 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 | |
| repo_slug | Yes | The repository name | |
| workspace | Yes | The workspace or username | |
| 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%) |