bb_list_directory
List immediate children of a directory in a Bitbucket repo at a branch or commit. Returns each item's name, type, and path for a clear repository structure view.
Instructions
List immediate children of a directory in a repo at a given ref (default branch or commit SHA). Each item: name, type (FILE/DIRECTORY), and path.
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": {
"projectKey": "<projectKey>",
"repoSlug": "<repoSlug>"
},
"name": "bb_list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Ref: branch name or commit SHA (default = default branch) | |
| path | No | Directory path to list; empty = repo root. Use '' for root, 'src' for src/. | |
| repoSlug | Yes | ||
| projectKey | Yes |