List Directory
list_directoryList files and sub-directories in a Bitbucket repository at a specific commit or branch. Returns paginated directory listing with file type, size, and MIME type.
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)
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 |