repo_branch
Retrieve a specific remote Git branch or list remote branches in an Azure DevOps repository. Use 'get' for exact name, 'list' with optional prefix filter.
Instructions
Get an exact remote Git branch or list remote branches. Branch names are case-sensitive. Only heads are exposed; local Git state is supplied by the agent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum results per page (1–100). | |
| action | Yes | ||
| branch | No | Branch name; required for get. | |
| prefix | No | Optional starts-with branch filter for list, such as feature/. | |
| project | No | Project name or ID. Defaults to ADO_PROJECT; discover with server_info/list_projects. | |
| repository | Yes | Repository name or ID in the selected project. | |
| continuationToken | No | Opaque continuationToken from the previous response. Keep the same filters. |