Create branch
create_branchCreate a Git branch from a specific commit in an Azure DevOps repository, with a confirmation flag to prevent accidental creation if the branch name already exists.
Instructions
Create a branch at an exact source commit, failing safely if the branch already exists.
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>",
"sourceObjectId": "<sourceObjectId>",
"confirm": "<confirm>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true to perform the mutation. | |
| project | No | ||
| branchName | Yes | ||
| repositoryId | Yes | ||
| sourceObjectId | Yes |