productivity
Coda CLI for Headless Automation
Use the Coda CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.
12 functions 9 read 3 write API token auth
Coda CLI for Headless Automation
Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.
Use headless automation when another tool needs a stable local command surface. The Coda CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Coda CLI for Headless Automation
kosmokrator integrations:configure coda --set api_token="$CODA_API_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call coda.coda_list_docs '{"query":"example_query","isOwner":true,"limit":1}' --json Discovery Before Execution
Agents and scripts can inspect Coda docs and schemas before choosing a function.
kosmo integrations:docs coda --json
kosmo integrations:docs coda.coda_list_docs --json
kosmo integrations:schema coda.coda_list_docs --json
kosmo integrations:search "Coda" --json
kosmo integrations:list --json Useful Coda CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
coda.coda_list_docs | Read | query, isOwner, limit | List Coda docs accessible to the authenticated user. Optionally filter by name or ownership. |
coda.coda_get_doc | Read | doc_id | Get details of a specific Coda doc by its ID. |
coda.coda_list_tables | Read | doc_id, limit | List tables in a Coda doc. Returns table IDs, names, and display types. |
coda.coda_get_table | Read | doc_id, table_id | Get details of a specific table in a Coda doc, including its columns and display column. |
coda.coda_list_rows | Read | doc_id, table_id, limit, useColumnNames | List rows in a Coda table. Use useColumnNames=true to get values keyed by human-readable column names instead of column IDs. |
coda.coda_get_row | Read | doc_id, table_id, row_id, useColumnNames | Get a single row from a Coda table by its row ID. |
coda.coda_insert_rows | Write | doc_id, table_id, rows | Insert one or more new rows into a Coda table. Each row should have a "cells" array with column/value pairs. |
coda.coda_update_row | Write | doc_id, table_id, row_id, cells | Update cells in an existing row in a Coda table. Provide a cells array with column/value pairs to update. |
coda.coda_delete_row | Write | doc_id, table_id, row_id | Delete a row from a Coda table. This action is permanent. |
coda.coda_list_columns | Read | doc_id, table_id, limit | List columns in a Coda table. Useful to discover column names and types before querying or inserting rows. |
coda.coda_list_pages | Read | doc_id, limit | List pages in a Coda doc. Pages can contain text, tables, and other content. |
coda.coda_get_current_user | Read | none | Verify Coda authentication and get the current user's profile information. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.