bitbucket_list_directory
List files and folders in a Bitbucket repository directory. Provide workspace, repository, path, and branch to retrieve the contents.
Instructions
List the contents of a directory in a repository.
Args: workspace: Workspace name or project key. repository: Repository name. path: Directory path in the repository (empty for root). branch: Branch name to list from (default: main).
Returns: JSON string containing directory contents.
Raises: ValueError: If the Bitbucket client is not configured or available.
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": {
"workspace": "<workspace>",
"repository": "<repository>"
},
"name": "bitbucket_list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory path in the repository | |
| branch | No | Branch name to list from | main |
| workspace | Yes | Workspace name (Cloud) or project key (Server/DC) | |
| repository | Yes | Repository name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |