Grist CLI Setup Grist can be configured headlessly with `kosmokrator integrations:configure grist`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure grist --set api_key=" $GRIST_API_KEY " --set base_url=" $GRIST_BASE_URL " --enable --read allow --write ask --json
kosmokrator integrations:doctor grist --json
kosmokrator integrations:status --json Credentials
Authentication type: API key api_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Call Grist Headlessly Use the generic call form when another coding CLI or script needs a stable universal interface.
kosmo integrations:call grist.grist_list_workspaces '{
"org_id": 1
}' --json Use the provider shortcut form for shorter human-facing commands.
kosmo integrations:grist grist_list_workspaces '{
"org_id": 1
}' --json Agent Discovery Commands
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs grist --json
kosmo integrations:docs grist.grist_list_workspaces --json
kosmo integrations:schema grist.grist_list_workspaces --json
kosmo integrations:search "Grist" --json
kosmo integrations:list --json All CLI Functions
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Grist.
grist.grist_list_workspaces Read read List all workspaces in a Grist organization.
org_id kosmo integrations:call grist.grist_list_workspaces '{"org_id":1}' --json copy kosmo integrations:grist grist_list_workspaces '{"org_id":1}' --json copy
grist.grist_get_workspace Read read Get details for a single Grist workspace, including its documents.
workspace_id kosmo integrations:call grist.grist_get_workspace '{"workspace_id":1}' --json copy kosmo integrations:grist grist_get_workspace '{"workspace_id":1}' --json copy
grist.grist_list_docs Read read List all documents in a Grist organization.
org_id kosmo integrations:call grist.grist_list_docs '{"org_id":1}' --json copy kosmo integrations:grist grist_list_docs '{"org_id":1}' --json copy
grist.grist_get_doc Read read Get details for a single Grist document by ID.
doc_id kosmo integrations:call grist.grist_get_doc '{"doc_id":"example_doc_id"}' --json copy kosmo integrations:grist grist_get_doc '{"doc_id":"example_doc_id"}' --json copy
grist.grist_list_tables Read read List all tables in a Grist document.
doc_id kosmo integrations:call grist.grist_list_tables '{"doc_id":"example_doc_id"}' --json copy kosmo integrations:grist grist_list_tables '{"doc_id":"example_doc_id"}' --json copy
grist.grist_get_table Read read Get a single table from a Grist document.
doc_id, table_id kosmo integrations:call grist.grist_get_table '{"doc_id":"example_doc_id","table_id":"example_table_id"}' --json copy kosmo integrations:grist grist_get_table '{"doc_id":"example_doc_id","table_id":"example_table_id"}' --json copy
grist.grist_list_records Read read List records from a Grist table with optional filtering, sorting, and limiting.
doc_id, table_id, limit, sort, filter kosmo integrations:call grist.grist_list_records '{"doc_id":"example_doc_id","table_id":"example_table_id","limit":1,"sort":"example_sort","filter":"example_filter"}' --json copy kosmo integrations:grist grist_list_records '{"doc_id":"example_doc_id","table_id":"example_table_id","limit":1,"sort":"example_sort","filter":"example_filter"}' --json copy
grist.grist_get_record Read read Get full column data for a Grist table (raw cell values per column).
doc_id, table_id kosmo integrations:call grist.grist_get_record '{"doc_id":"example_doc_id","table_id":"example_table_id"}' --json copy kosmo integrations:grist grist_get_record '{"doc_id":"example_doc_id","table_id":"example_table_id"}' --json copy
grist.grist_create_records Write write Create one or more records in a Grist table.
doc_id, table_id, records kosmo integrations:call grist.grist_create_records '{"doc_id":"example_doc_id","table_id":"example_table_id","records":"example_records"}' --json copy kosmo integrations:grist grist_create_records '{"doc_id":"example_doc_id","table_id":"example_table_id","records":"example_records"}' --json copy
grist.grist_update_records Write write Update one or more existing records in a Grist table.
doc_id, table_id, records kosmo integrations:call grist.grist_update_records '{"doc_id":"example_doc_id","table_id":"example_table_id","records":"example_records"}' --json copy kosmo integrations:grist grist_update_records '{"doc_id":"example_doc_id","table_id":"example_table_id","records":"example_records"}' --json copy
grist.grist_delete_records Write write Delete records from a Grist table by row IDs.
doc_id, table_id, record_ids kosmo integrations:call grist.grist_delete_records '{"doc_id":"example_doc_id","table_id":"example_table_id","record_ids":"example_record_ids"}' --json copy kosmo integrations:grist grist_delete_records '{"doc_id":"example_doc_id","table_id":"example_table_id","record_ids":"example_record_ids"}' --json copy
grist.grist_create_column Write write Create a new column in a Grist table.
doc_id, table_id, col_id, label, type, formula kosmo integrations:call grist.grist_create_column '{"doc_id":"example_doc_id","table_id":"example_table_id","col_id":"example_col_id","label":"example_label","type":"example_type","formula":"example_formula"}' --json copy kosmo integrations:grist grist_create_column '{"doc_id":"example_doc_id","table_id":"example_table_id","col_id":"example_col_id","label":"example_label","type":"example_type","formula":"example_formula"}' --json copy
grist.grist_list_columns Read read List all columns in a Grist table.
doc_id, table_id kosmo integrations:call grist.grist_list_columns '{"doc_id":"example_doc_id","table_id":"example_table_id"}' --json copy kosmo integrations:grist grist_list_columns '{"doc_id":"example_doc_id","table_id":"example_table_id"}' --json copy Function Schemas Use these parameter tables when building CLI payloads without calling integrations:schema first.
Operation Read read
Schema command kosmo integrations:schema grist.grist_list_workspaces --json
Operation Read read
Schema command kosmo integrations:schema grist.grist_get_workspace --json
Operation Read read
Schema command kosmo integrations:schema grist.grist_list_docs --json
Operation Read read
Schema command kosmo integrations:schema grist.grist_get_doc --json
Operation Read read
Schema command kosmo integrations:schema grist.grist_list_tables --json
Operation Read read
Schema command kosmo integrations:schema grist.grist_get_table --json
Operation Read read
Schema command kosmo integrations:schema grist.grist_list_records --json
Operation Read read
Schema command kosmo integrations:schema grist.grist_get_record --json
Operation Write write
Schema command kosmo integrations:schema grist.grist_create_records --json
Operation Write write
Schema command kosmo integrations:schema grist.grist_update_records --json
Operation Write write
Schema command kosmo integrations:schema grist.grist_delete_records --json
Operation Write write
Schema command kosmo integrations:schema grist.grist_create_column --json
Operation Read read
Schema command kosmo integrations:schema grist.grist_list_columns --json Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.