has_table
Check if a table exists in a specific branch of the Bauplan data catalog using its name and branch reference.
Instructions
Check if a specified table exists in a given branch of the user's Bauplan data catalog using a table name and branch name.
Args: table: Name of the table to check for existence. ref: A reference to a commit that is a state of the user data lake: can be either a hash that starts with "@" and has 64 additional characters or a branch name, that is a mnemonic reference to the last commit that follows the "username.name" format.
Returns: TableExists: Object indicating whether the table 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": {
"table": "<table>",
"ref": "<ref>"
},
"name": "has_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| ref | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | ||
| exists | Yes | ||
| message | Yes |