Delete table rows
table_delete_rowsDelete up to 1000 rows by their own ids (ids), all of one table (rows of two tables are INVALID_INPUT). An id that names no row you can read is skipped. Workspace tables need why; expectedRevisions is optional and refuses (CONFLICT) a row that changed since. Send expectedTableRevision to refuse the whole delete (CONFLICT) if the table changed since; when none of the named rows exists any more, nothing names the table, so the reply is deleted: 0 with no tableRevision and the guard is not checked. Otherwise 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": {
"ids": "<ids>"
},
"name": "table_delete_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | The rows, by their own ids: at most 1000, all of one table. An id that names no row is skipped. | |
| 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. | |
| expectedRevisions | No | Optional, per row (keyed by an id of ids): refuse (CONFLICT) if that row changed since this revision or no longer exists. | |
| 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 |
|---|---|---|---|
| deleted | Yes | ||
| tableRevision | No |