Change a data table column
folio_table_update_columnUpdates a single data table column—rename, retype with value conversion, or adjust options, width, alignment, hints, defaults, and date/number settings—while changing only supplied fields.
Instructions
Changes one column of a data table, like the column menu in the web app: rename it, change its type (values are converted; the answer says how many were converted and how many could not be and were cleared), its hint, width, alignment, select/status options (the WHOLE list: give every option to keep), multiple, allowCreate, precision, time or default. Only the fields you give change. Call folio_table_schema first to learn this table's REAL column ids, types and option values — never guess them from a title or prior knowledge of a similar table. Requires a write-scoped token.
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": {
"id": "<id>",
"columnId": "<columnId>"
},
"name": "folio_table_update_column"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Table page id | |
| name | No | New column title | |
| time | No | date columns: also store the time of day | |
| type | No | New column type; existing values are converted | |
| align | No | Cell text alignment | |
| width | No | Column width in pixels (60-1200) | |
| default | No | Value a new row gets when it omits this column | |
| options | No | select and status columns: the whole new list of allowed values, as labels or { value, color?, description? } | |
| columnId | Yes | Id of the column to change (from folio_table_schema) | |
| multiple | No | select or user columns: allow several values per cell | |
| precision | No | number columns: digits after the decimal point (0-6) | |
| allowCreate | No | select columns: allow a value that is not among the options | |
| description | No | Hint shown in the column header |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| column | Yes | The column after the change | |
| cleared | Yes | Values that could not be converted and were cleared | |
| converted | Yes | Values converted to the new type |