WAKATODOCS

Tables

Space MCP tools in the Tables scope (tables). Reach these with a wks_live_ key over space-mcp or space-api.

Tools in the tables scope, callable over space-mcp (tools/call) or space-api (REST) with a wks_live_* key that grants tables.

add_row_comment

Scope: tables:write

Add a comment to a table row's discussion thread (posted as the agent).

ParameterTypeRequiredDescription
table_idstringyes
row_idstringyes
bodystringyes

create_table

Scope: tables:write

Create a new table. Pass name (plural label, e.g. 'Invoices') and optionally columns to define the schema in one call — same shape as create_table_column args ({key,label,type,...}). Slug is auto-generated and de-duplicated. The first text column becomes the row title unless title_field_key is set.

ParameterTypeRequiredDescription
namestringyesPlural label, e.g. 'Invoices'.
singular_labelstringDefaults to name.
slugstring
iconstringLucide icon name or emoji.
colorstring
descriptionstring
title_field_keystring
columnsobject[]Initial columns: [{key,label,type,options?,reference_target?,field_config?,required?,default_value?,icon?}].

create_table_column

Scope: tables:write

Add a column to a table. key must be snake_case (^[a-z][a-z0-9_]*$). All field types are supported (text, number, select, rating, attachment, formula, lookup, rollup, ...). For select/multi_select pass options:[{value,label,color?}]; for reference pass reference_target:{kind:'contact'|'task'|'calendar_event'} or {kind:'table',table_id}; for formula/lookup/rollup/button/currency-style config pass field_config (formula: {expression}, lookup: {source_column_key,target_column_key}, rollup: {source_column_key,target_column_key,aggregator}).

ParameterTypeRequiredDescription
table_idstringyes
keystringyessnake_case column key, e.g. 'vin'.
labelstringyes
typestringyes
descriptionstring
optionsarrayselect/multi_select choices: [{value,label,color?}].
reference_targetobjectreference target: {kind:'contact'} or {kind:'table',table_id}.
field_configobjectType-specific config (formula expression, lookup/rollup source, button action, number format, ...).
requiredboolean
default_value
display_ordernumber
iconstringOptional emoji shown in the column header.

create_table_row

Scope: tables:write

Create a row in a table. Pass column values in data.

ParameterTypeRequiredDescription
table_idstringyes
dataobjectyesMap of column key → value.

create_table_rows

Scope: tables:write

Bulk-insert up to 100 rows into a table in one call. rows is an array of data objects (column key → value).

ParameterTypeRequiredDescription
table_idstringyes
rowsobject[]yes

Scope: tables:write

Create a PUBLIC view-only share link for a table. Anyone with the URL sees a read-only rendering of the given view (its filters and hidden fields are enforced server-side). Omit view_id to share the table's default view. Returns the shareable URL.

ParameterTypeRequiredDescription
table_idstringyes
view_idstringShare this specific view. Defaults to the table's default view.
namestringLabel shown in the share-links list.

create_table_snapshot

Scope: tables:write

Capture a named save point of a table's full state (schema + rows + views). Do this before risky bulk edits so the user can restore.

ParameterTypeRequiredDescription
table_idstringyes
labelstring

create_table_view

Scope: tables:write

Create a view for a table. type: grid | kanban | gallery | calendar | dashboard. config holds the per-view filters/sort/group/layout (kanban needs config.group_by, calendar needs config.date_field, dashboard needs config.widgets).

ParameterTypeRequiredDescription
table_idstringyes
namestringyes
typestringDefaults to grid.
configobjectPer-view filters/sort/grouping/layout settings.
display_ordernumber
is_defaultbooleanMake this the table's default view (clears any prior default).

delete_table

Scope: tables:write

Delete a table. Default is ARCHIVE (reversible via update_table {archived:false}). Pass hard_delete:true to permanently delete the table and all its rows/columns/views — a safety snapshot is captured first.

ParameterTypeRequiredDescription
table_idstringyes
hard_deleteboolean

delete_table_column

Scope: tables:write

Delete a table column (drops its data from all rows).

ParameterTypeRequiredDescription
column_idstringyes

delete_table_row

Scope: tables:write

Delete one row from a table. Irreversible (but the table History keeps a before-state).

ParameterTypeRequiredDescription
table_idstringyes
row_idstringyes

delete_table_rows

Scope: tables:write

Bulk-delete up to 100 rows by id in one call.

ParameterTypeRequiredDescription
table_idstringyes
row_idsstring[]yes

delete_table_view

Scope: tables:write

Delete a table view.

ParameterTypeRequiredDescription
view_idstringyes

get_table

Scope: tables:read

Get one table's full definition: metadata, columns (schema), views, and row count. Call this before reading/writing rows so you know the column keys and types.

ParameterTypeRequiredDescription
table_idstringyes

get_table_view

Scope: tables:read

Get one table view including its full config (filters, sort, grouping, layout settings).

ParameterTypeRequiredDescription
view_idstringyes

list_row_comments

Scope: tables:read

List the comment thread on a table row (oldest first).

ParameterTypeRequiredDescription
table_idstringyes
row_idstringyes
limitnumber

list_table_columns

Scope: tables:read

List a table's columns (its schema). Needed before creating rows so you know the column keys/types.

ParameterTypeRequiredDescription
table_idstringyes

list_table_rows

Scope: tables:read

List/query rows of a table with optional filters (AND-combined, ops: eq|neq|contains|gt|lt|is_empty|is_not_empty on column keys), multi-column sort, and search (substring match on the title column, or search_column). Returns rows plus total/has_more for pagination.

ParameterTypeRequiredDescription
table_idstringyes
limitnumber
offsetnumber
filtersobject[][{column_key, op, value?}] — AND-combined.
sortobject[][{column_key, direction:'asc'|'desc'}] — also accepts created_at/updated_at.
searchstring
search_columnstring

Scope: tables:read

List a table's public view-only share links (URL, view, revoked state).

ParameterTypeRequiredDescription
table_idstringyes

list_table_snapshots

Scope: tables:read

List a table's Time Machine snapshots (save points + auto-captured session snapshots), newest first.

ParameterTypeRequiredDescription
table_idstringyes
limitnumber

list_table_views

Scope: tables:read

List the saved views (grid/kanban/gallery/calendar) of a table. Per-view filters/sort/group live in each view's config.

ParameterTypeRequiredDescription
table_idstringyes

list_tables

Scope: tables:read

List user-defined tables (record types) in the space.

restore_table_snapshot

Scope: tables:write

Restore a table to a snapshot's state (schema + rows + views). Atomic; a pre-restore snapshot is captured automatically so this is reversible.

ParameterTypeRequiredDescription
snapshot_idstringyes

Scope: tables:write

Revoke a public share link — the URL stops working immediately.

ParameterTypeRequiredDescription
link_idstringyes

update_table

Scope: tables:write

Edit table metadata: labels, slug, icon, color, description, title_field_key, display_order. Pass archived:true to archive (hide) the table, archived:false to restore it.

ParameterTypeRequiredDescription
table_idstringyes
namestringAlias for plural_label.
singular_labelstring
plural_labelstring
slugstring
iconstring
colorstring
descriptionstring
title_field_keystring
display_ordernumber
archivedboolean

update_table_column

Scope: tables:write

Edit a table column (label, type, options, required, etc.).

ParameterTypeRequiredDescription
column_idstringyes
keystring
labelstring
typestring
descriptionstring
optionsarray
reference_targetobject
field_configobject
requiredboolean
default_value
display_ordernumber
iconstring

update_table_row

Scope: tables:write

Patch a row's data (merged into existing JSON, not replaced).

ParameterTypeRequiredDescription
table_idstringyes
row_idstringyes
dataobjectyes

update_table_rows

Scope: tables:write

Bulk-patch up to 100 rows in one call. updates = [{row_id, data}] — each data object is merged into that row. Per-row failures are reported, not fatal.

ParameterTypeRequiredDescription
table_idstringyes
updatesobject[]yes

update_table_view

Scope: tables:write

Edit a table view (name, type, config, order, or default flag).

ParameterTypeRequiredDescription
view_idstringyes
namestring
typestring
configobject
display_ordernumber
is_defaultboolean

On this page