Update table row
table_update_rowPartially merge typed JSON into one table row, named by its own id (id; the row names its table). A workspace table needs why. expectedRevision is optional: when sent, a row that changed since is CONFLICT and nothing is written. A row you cannot read is NOT_FOUND. Returns a bounded receipt. Setting the key column to a value another row holds is STATE_CONFLICT; a key value that is an object, an array or over 1024 bytes, or text holding U+0000 or a lone surrogate, is INVALID_INPUT. Send expectedTableRevision to refuse the update (CONFLICT) if the table changed since; the reply's tableRevision is the next one to send.
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": {
"id": "<id>",
"data": "<data>"
},
"name": "table_update_row"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The row, by its own id (it names its table). | |
| why | No | Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters. | |
| data | Yes | The columns to set; the others keep their values. | |
| expectedRevision | No | Optional: the row's revision as you read it; when sent, a row that changed since is CONFLICT (with currentRevision) and nothing is written. | |
| expectedTableRevision | No | Optional: refuse the whole call (CONFLICT, with currentTableRevision) if the table changed since this tableRevision, from a rows page, the table read or the last receipt. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| updated | Yes | ||
| revision | Yes | ||
| updatedAt | Yes | ||
| tableRevision | Yes |