edit_rows
Update, soft-delete or restore rows. updates is a list of {row_id, cells}, cells mapping column_id to value; deletes / restores are row-id lists. Values coerce as in append_rows: one that does not fit is refused, and an attachment column cannot be written or cleared. Max 1000 rows per call, all three lists together. Pass expected_version to get a version conflict rather than overwrite a newer table. Ask before deleting rows the user did not name.
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": {
"model_id": "<model_id>",
"table_id": "<table_id>"
},
"name": "edit_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deletes | No | Row ids to soft-delete. | |
| updates | No | Cell updates on existing rows. | |
| model_id | Yes | ||
| restores | No | Row ids to restore (undo a soft-delete). | |
| table_id | Yes | ||
| expected_version | No | The table version you read at; if the table changed since, the write fails with a version conflict. |