Edit a document table by row/column
doc_edit_tableModify a document or task-page table by rows, columns, cells, sorting, and column types without editing raw Markdown. Read the table first, then apply one table write action.
Instructions
Change one table in a doc or task page by rows and columns, never its raw Markdown. Use it for tables instead of doc_edit; read it first via workspace_read(view="table"). Returns its columns, rows, cells breaking a column type, and new print.
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": {
"doc": "<doc>",
"action": "<action>"
},
"name": "doc_edit_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document ID or task-page filename | |
| row | No | For `set`/`remove_row`: 1-based row number or first-cell text | |
| down | No | For `sort`: true sorts descending | |
| type | No | For `set_type`/`add_column`: type syntax e.g. `number`, `money USD sum`, `date`, `check` | |
| table | No | 1-based table index or heading above it (omit if single table) | |
| title | No | For `rename_column`/`add_column`: column title | |
| value | No | For `set`: cell value ("" clears) | |
| action | Yes | Table write operation | |
| column | No | 1-based index or header (`set`, `sort` and column actions) | |
| values | No | For `add_row`: map of column title to cell value | |
| keep_compaction | No | Confirm keeping prior compaction on user request |