list_branches
List branches in a BitBucket repository to see available branches and their latest commit information. Specify repository, workspace, and limit.
Instructions
List branches in a BitBucket repository.
Use this tool to see available branches in a repository, including their names and latest commit information.
Args: repository: Repository slug. If not provided and working in a git repo with a BitBucket remote, will use the current repository. workspace: Workspace slug. If not provided, uses the default workspace. limit: Maximum number of branches to return. Default 50.
Returns: JSON list of branches with their names and target commit info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| workspace | No | ||
| repository | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |