Coda Insert Rows
coda_insert_rowsInsert up to 500 rows into a Coda table and bulk-update existing rows by providing key columns for upsert.
Instructions
Insert one or more rows into a Coda table, with optional upsert.
Inserts up to 500 rows per call. Use column names (not IDs) in the cells. With key_columns, matching rows are updated (upsert) instead of inserted — this is the only way to bulk-update rows. Returns a requestId for async mutation tracking via coda_get_mutation_status. The operation is async (202).
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": {
"doc_id": "<doc_id>",
"table_id_or_name": "<table_id_or_name>",
"rows": "<rows>"
},
"name": "coda_insert_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | List of rows to insert. Each row is a dict with 'cells' key containing a list of {column: name, value: val} objects. Example: [{'cells': [{'column': 'Name', 'value': 'Alice'}]}] | |
| doc_id | Yes | The doc ID containing the table | |
| key_columns | No | Column names to use as upsert keys. If a row matches on these columns, it is updated instead of inserted. Omit for pure insert. | |
| table_id_or_name | Yes | Table ID or name to insert rows into |