get_repository_contents
Retrieve file or directory contents from a BitBucket repository. Specify path, branch, or tag to view directory listings or file data.
Instructions
Get file or directory contents from a BitBucket repository.
Use this tool to browse repository contents, view file structure, or read file contents. Can navigate to specific paths and refs (branches/tags).
Args: path: Path to file or directory (empty string for root). repository: Repository slug. If not provided, uses current repository context. workspace: Workspace slug. If not provided, uses the default workspace. ref: Branch, tag, or commit hash (default: HEAD).
Returns: JSON object with directory listing or file contents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| path | No | ||
| workspace | No | ||
| repository | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |