get_default_branch
Determine the default branch of a Bitbucket repository by specifying its project key and repository slug. This helps you target the correct branch for automated tasks.
Instructions
Get the default branch of a repository.
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": {
"projectKey": "<projectKey>",
"repositorySlug": "<repositorySlug>"
},
"name": "get_default_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectKey | Yes | The Bitbucket project key | |
| repositorySlug | Yes | The repository slug |