clickhouse.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.
Play
get
play.get
Fetch the ClickHouse Play web UI HTML (Monaco editor + query UI).
Risk: read
Query
execute
query.execute
Execute a SQL query against the tenant ClickHouse instance and return the result rows. Arbitrary SQL is accepted — destructive statements require explicit permission.
Risk: destructive · Irreversible
Output
rows full type
rows full type
listDatabases
query.listDatabases
List all databases on the tenant ClickHouse instance.
Risk: read
databases full type
databases full type
listTables
query.listTables
List tables in a ClickHouse database with their engine and approximate size.
Risk: read
Output
tables full type
tables full type
Schema
getDatabase
schema.getDatabase
Get schema overview for a ClickHouse database; optionally include column definitions for each table.
Risk: read
Output
tables full type
tables full type
getTable
schema.getTable
Get column-level schema for a ClickHouse table, optionally with sample rows.
Risk: read
Output
columns full type
columns full type
sampleRows full type
sampleRows full type