Update Tunc Orb data
data_updateChange a record that already exists in the user's Tunc Orb: replace its whole value, or patch fields of a JSON record. Use it when the user asks you to correct or update something saved earlier. This overwrites the saved value and the previous value cannot be read back, so read the record with data_read first and send its current revision as if_revision; a stale revision is refused with revision_conflict, so reread and decide again. Prefer patch (an ordered JSON Patch; if any step fails nothing changes) for small changes to a JSON record, and replace only when you intend the entire new value. Each call sends at most 64 KiB; a record can hold up to 16 MiB. When you retry, send the same mutation_id so the change applies once. Save new data with data_write and remove data with data_delete.
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": {
"operation": "<operation>",
"name": "<name>",
"if_revision": "<if_revision>"
},
"name": "data_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact record or log name (UTF-8, at most 512 bytes, never normalized). Required for every operation. Collections are naming conventions such as contacts/<id>. | |
| text | No | UTF-8 text payload (exact bytes are kept). replace only: exactly one of value or text. | |
| about | No | Optional: a new one-line description (at most 160 characters) of what the record holds. | |
| patch | No | patch only: ordered JSON Patch (RFC 6902 subset add, remove, replace, test). If any operation fails, nothing changes. | |
| value | No | JSON payload (any JSON value; null is a real value). replace only: exactly one of value or text, at most 64 KiB. Keep records small: save a larger file as a file and keep its artifact_id here. | |
| shelf_id | No | Shelf to use (a stable ID from data_read operation=shelves). Omit to use the current default shelf, which is resolved once and pinned for this call and its retries. | |
| operation | Yes | replace: whole new value (name, if_revision, one payload; optional about). patch: JSON Patch on a JSON record (name, if_revision, patch; optional about). | |
| if_revision | Yes | Current revision from your latest read or write. Required for replace and patch. A stale revision is rejected with revision_conflict; reread and decide again. | |
| mutation_id | No | Optional: an ID you choose once for this change (a UUID, or a mut_ ID from an earlier result) and send again when you retry, so the change never applies twice. Omit it and the service assigns one; the result carries it for data_read operation=status. |