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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "kb_list_tables"
}
}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') |