list_branches
List branches in a Bitbucket repository, including the default branch. Filter by name substring, paginate results, and select custom fields.
Instructions
List branches in a repository. Also returns the default branch when available. Supports custom field selection via the fields param ('*all' for full raw response, 'displayId,latestCommit' for a custom subset).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of branches to return (default: 25, max: 1000). | |
| start | No | Start index for pagination (default: 0). | |
| fields | No | Comma-separated fields to return (dot notation for nested paths). Omit for a curated default; use '*all' for the full raw API response. | |
| project | No | Project key. Defaults to BITBUCKET_DEFAULT_PROJECT. | |
| filterText | No | Filter branches by name substring. | |
| repository | Yes | Repository slug. |