Update item fields
data_update_itemUpdate an item by shallow-merging fields with optimistic concurrency; set a key to null to remove it.
Instructions
Shallow-merge fields into an item (set a key to null to remove it). Uses optimistic concurrency.
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": {
"command_id": "<command_id>",
"id": "<id>",
"fields": "<fields>"
},
"name": "data_update_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| actor | No | ||
| fields | Yes | ||
| collection | No | the item's collection, if known — the write is refused unless the row is in it | |
| command_id | Yes | idempotency key — generate a fresh uuid per action | |
| expected_version | No | the item version you last saw |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| ok | Yes | ||
| eot | No | ||
| seq | No | ||
| item | No | ||
| note | No | ||
| reason | No | ||
| deleted | No | ||
| collection | No | ||
| violations | No | ||
| expected_version | No | ||
| prev_collection_seq | No |