bitbucket_get_default_branch
Retrieves the default branch for a Bitbucket repository given the workspace and repository name.
Instructions
Get the default branch for a repository.
Args: workspace: Workspace name or project key. repository: Repository name.
Returns: JSON string containing default branch information.
Raises: ValueError: If the Bitbucket client is not configured or available.
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": {
"workspace": "<workspace>",
"repository": "<repository>"
},
"name": "bitbucket_get_default_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | Workspace name (Cloud) or project key (Server/DC) | |
| repository | Yes | Repository name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |