Change a table in a document
edit_tableModify a document's table by row and column names: set cells, add or remove rows or columns, sort, rename, and assign column types without editing Markdown.
Instructions
Read or change one table of a document by what its rows and columns are called, never by its Markdown: set a cell, add or remove a row, sort, rename a column, give it a type, add or remove a column. A row is named by the words of its first cell and a column by its title, as show hands them back. A value is written the way its column's type reads it — 1234.5 for a number, 2026-10-28 for a date, true for a checkbox — and one that does not fit is kept as sent and named in the answer. What the document said before is kept, as with edit_doc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| do | No | What to do. Defaults to show, which changes nothing and hands back the columns with their types and the rows by their first cell | |
| doc | Yes | The document's id, as `docs` hands it back — an opaque name like `q7ntmzbm-0001`, not its title | |
| row | No | For set and remove: the row, by the words of its first cell or its number from 1 | |
| down | No | For sort: from the largest down. Defaults to from the smallest up | |
| type | No | For type and add_column: the column's type as written between braces in its head, such as `number`, `money USD sum`, `date`, `check` or `select`; `language` with the topic `tables` lists them. Empty takes the type away | |
| table | No | Which table, by its number from 1 or by the heading over it. Left out when the document holds only one | |
| title | No | For rename and add_column: the column's title | |
| value | No | For set: what goes in the cell. Empty clears it | |
| column | No | For set, sort, type, rename and remove_column: the column, by its title or its number from 1 | |
| values | No | For add: each column's title with what goes in it. Columns left out stay empty | |
| keep_compaction | No | Only when the person told you in this conversation to keep a compaction of this document that waits for their word: it is kept, and this write goes ahead |