has_branch
Checks if a specific branch exists in the Bauplan data catalog, enabling validation of branch names before operations.
Instructions
Check if a specified branch exists in the user's Bauplan data catalog using a branch name. Check if a specific branch exists in the Bauplan catalog.
Args: branch: Name of the branch to check for existence.
Returns: BranchExists: Object indicating whether the branch exists with details
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": {
"branch": "<branch>"
},
"name": "has_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch_name | Yes | ||
| exists | Yes | ||
| message | Yes |