list_objects
Lists tables, views, and sequences in a schema, or extensions in a database, returning names, types, and schema details for inspection.
Instructions
List the tables, views or sequences in one schema, or every extension in the database (schema_name is not used for extension). Rows give the schema, name and type of each table or view, the schema, name and data type of each sequence, or each extension's name, version, relocatable flag and schema from pg_extension.extnamespace. Read from the system catalogs, so the role's privileges do not hide objects. Use list_schemas for schema names and get_object_details for one object.
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": {
"schema_name": "<schema_name>"
},
"name": "list_objects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_type | No | Object type: table, view, sequence or extension (default table) | |
| schema_name | Yes | Schema name (not used for extension) |