Update Table Column Widths
update_table_column_widthsSet exact pixel widths for every column in an AFFiNE table while preserving rows and cell content; pass null for any column to restore automatic width.
Instructions
Set every column width in an AFFiNE table while preserving rows and cell content. Pass null for a column to restore AFFiNE's automatic width.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | AFFiNE document id. | |
| widths | Yes | Widths in pixels, in current column order. Provide exactly one entry per column; null restores automatic width. | |
| blockId | Yes | Table block id (flavour affine:table). | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. | |
| expectedRevision | No | Optional read_doc revision of this primary document. Reject stale content before writing. Covers document content, not workspace metadata; requires all writers to share one MCP server. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| error | No | ||
| table | No | ||
| blockId | No | ||
| details | No | ||
| updated | No | ||
| previous | No | ||
| rowCount | No | ||
| causeCode | No | ||
| columnIds | No | ||
| retryable | No | ||
| columnCount | No | ||
| changedColumns | No | ||
| recoveryGuidance | No |