TablesWriteDo not retry automatically

Update a table view

update_table_view

Change a saved view’s name, icon, query (filter / sort / group), field arrangement, footer calculations, row colours, density or layout. Only the properties you pass change. A compare-and-set on the view version: another editor’s change is reported rather than overwritten. Another user’s personal view is not found.

Parameters

ParameterTypeRequiredDescription
tableIdstringrequiredTable ID
viewIdstringrequiredView ID — from list_table_views
namestringoptionalInput for name.
expectedVersionintegeroptionalThe view version you read. Omit to edit the version this call reads — pass it when a human is editing the same view.
iconstring | nulloptionalIcon catalog id; null clears it
queryobjectoptionalWhich rows, in what order, grouped how: { filter, sort: [{ field, direction }], group: [{ field }] }. filter is the same tree query_table_rows takes, or null.
fieldsobjectoptionalField arrangement by key: { order, hidden, widths, pins: { left, right }, wrap }
calculationsobjectoptionalFooter calculation per field key, e.g. { amount: "sum" }
decorationsobject | object[]optionalRow colour rules: [{ id, condition, color, style? }]; the first match wins
density"comfortable" | "compact" | "tight"optionalInput for density.
layoutunknownoptionalLayout: { layout: "grid" }, { layout: "board", groupField }, { layout: "calendar", dateField }, { layout: "gallery" }, { layout: "timeline", startField }, { layout: "list" } or { layout: "form" }. A board groups by a select, status, single user or one-row relation field.

Example call

The tool call an MCP client sends (required arguments shown with placeholder values).

{
"tool": "update_table_view",
"arguments": {
"tableId": "tableId_123",
"viewId": "viewId_123"
}
}

Use this tool in

Related Tables tools