browse_directory
List files and folders in a Bitbucket repository directory to understand its structure. Returns names, types, and paths for each entry.
Instructions
Browse the contents of a directory in a repository. Returns file and folder names, types, and paths. Use this to explore the repository structure.
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>"
},
"name": "browse_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The directory path to browse (e.g., 'src/components'). Use empty string or '/' for root. | |
| branch | No | The branch name. Defaults to the main branch. | |
| repo_slug | Yes | The repository slug. | |
| workspace | No | The workspace slug. Optional if BITBUCKET_WORKSPACE env var is set. |