add_columns
Create new columns in an existing Grist table by specifying names, types, labels, and formulas, so you can extend a document's schema.
Instructions
Add new columns to an existing table.
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": {
"table_id": "<table_id>",
"columns": "<columns>"
},
"name": "add_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | No | Document ID | |
| columns | Yes | Columns to add | |
| table_id | Yes | Table to add columns to |