List repository tree
list_directoryExplore repository file structure at a specific commit or branch for pull request reviews. Recursively list directories up to 10 levels deep to navigate project code.
Instructions
Lists files and directories under a repository path at a commit/branch. Use it to explore the project structure while reviewing a PR. Empty path = root; max_depth > 1 lists recursively. To see the code as proposed in the PR, pass the source_commit returned by get_pull_request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory path. Omit for the root. | |
| repo | Yes | Repository repo_slug. | |
| commit | No | Commit or branch. Omit to use the default branch. | |
| max_depth | No | Listing depth (default 1 = immediate children). | |
| workspace | No | Bitbucket workspace. Omit to use BITBUCKET_WORKSPACE. |