List Tables
kb_list_tablesList all tables and views in a schema with type, owner, and row count. Filter by schema or object type.
Instructions
List all tables and/or views in a schema.
Args:
schema (string, optional): Schema name, defaults to DB_SCHEMA env or 'public'
type ('table' | 'view' | 'all'): Filter by type (default: 'all')
Returns: List of tables/views with their type, owner, and estimated row count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter by object type: 'table', 'view', or 'all' (default: 'all') | all |
| schema | No | Schema name (default: from DB_SCHEMA env or 'public') |