repo_get_branch_by_name
Retrieve a specific branch from an Azure DevOps repository by providing the repository ID and branch name. Simplifies branch management using PAT authentication.
Instructions
Get a branch by its name.
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": {
"repositoryId": "<repositoryId>",
"branchName": "<branchName>"
},
"name": "repo_get_branch_by_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branchName | Yes | The name of the branch to retrieve, e.g., 'main' or 'feature-branch'. | |
| repositoryId | Yes | The ID of the repository where the branch is located. |