List Tables
list_tablesShow all tables and views with their comments from a specified or current database. Filter by schema to explore MotherDuck or DuckDB data.
Instructions
List all tables and views in a database with their comments. If database is not specified, uses the current database.
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": "list_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Optional schema name to filter by | |
| database | No | Database name to list tables from (defaults to current database) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |