List Directory
list_directoryList files and subdirectories in a Bitbucket repository at a given commit or branch.
Instructions
List the entries (files and sub-directories) of a directory at a commit/branch.
Args: repo_slug: Repository slug commit: Commit hash (a simple branch/tag name also works) path: Directory path within the repository (empty = repository root) workspace: Workspace name (optional, defaults to configured workspace) page_size: Items per page (default: 50) max_pages: Maximum pages to fetch (default: 1, max recommended: 10)
Returns: Paginated directory listing (path, type, size, mimetype per entry)
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>",
"commit": "<commit>"
},
"name": "list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| commit | Yes | ||
| max_pages | No | ||
| page_size | No | ||
| repo_slug | Yes | ||
| workspace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |