bb_list_directory
List files and folders in a Bitbucket repository directory. Specify path and revision to browse code at any commit, branch, or tag.
Instructions
List the contents of a directory in a Bitbucket 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": {
"repo_slug": "<repo_slug>"
},
"name": "bb_list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number for pagination | |
| path | No | Directory path (defaults to repository root) | |
| pagelen | No | Number of results per page (max 100) | |
| revision | No | Branch name, tag, or commit hash (defaults to HEAD) | |
| repo_slug | Yes | Repository slug | |
| workspace | No | Bitbucket workspace slug (uses default if not set) |