memory_bulk_update
Batch update multiple memories (max 100). Supports add/remove tags, set kind, set canon_status, set verification_status, add/remove collections, merge metadata, add/remove links, clear superseded_by/replaces, forget (soft-delete). Does NOT support headline/body replacement. Mutates. Idempotent for set_* and tag operations; add_links will create duplicates on retry. Returns per-memory results. SOFT-DELETE RESTORE: Any non-forget operation on a soft-deleted memory revives it (same semantics as memory_update). The response includes restoredCount when any deleted rows were revived. SUPERSESSION CLEANUP: Setting set_canon_status to 'accepted' on memories with supersededBy pointers will automatically clear those pointers and remove superseded_by links. Use clear_superseded_by for explicit control without changing canon_status.
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": {
"memory_ids": "<memory_ids>",
"operations": "<operations>"
},
"name": "memory_bulk_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signer | No | Agent identity -- who wrote this. Required fields: agent_id, run_id. | |
| memory_ids | Yes | Memory IDs to update | |
| operations | Yes | Operations to apply to all specified memories |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | Per-memory or per-operation errors | |
| affected | No | Number of memories updated | |
| restoredCount | No | Count of soft-deleted memories revived by non-forget operations |