update_records
Update fields of multiple ledger records in one call, applying changes in order and writing all affected files atomically; if any item is refused, no changes are saved.
Instructions
Change fields of several records in one call and return each item's record in its final
state (two items on one record return the same, fully updated record).
updates is a list of {"id": "R-0001", "changes": {...}}; each changes works as in
update_record, and provenance stays as it was. Updates apply in order, so a later one sees
an earlier one (a duplicate id is allowed), and claim-level changes are copied to the claim's
other records, also in the related ledgers (pass the same list every time). Every affected
record is checked against the final state of all ledgers. If any item is refused, the error
lists all refusals, each prefixed with the item index and record id, and nothing is written;
otherwise the changed ledgers are rewritten together, related ones first and the edited one
last: all files or none (on a write error the files already replaced are restored).
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": {
"path": "<path>",
"updates": "<updates>"
},
"name": "update_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| related | No | ||
| updates | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |