List Database Tables
unfour.db.list_tablesLists tables and views for a saved database connection using its connectionId, with optional catalog and schema filters. Helps explore database structure without ad-hoc connection strings.
Instructions
Lists tables and views for a saved database connection through the Unfour command bus. Optional catalog and schema scope the listing. Requires a saved connectionId; does not accept ad-hoc connection strings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of tables to return (default 200, max 500). | |
| schema | No | Optional schema name. pg_catalog and information_schema are excluded even when specified. | |
| catalog | No | Optional database catalog. Omit to use the connection's default database. | |
| workspaceId | No | Optional workspace ID. Uses the active workspace if omitted. | |
| connectionId | Yes | Required saved database connection ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| source | Yes | ||
| tables | Yes | ||
| truncated | Yes | ||
| totalTables | Yes | ||
| connectionId | Yes |