supersede
Mark an existing memory document as replaced by another document, recording the reason and leaving the replacement doc unchanged.
Instructions
Mark an existing memory document as superseded by a replacement document. Forward-only — the replacement doc is NOT touched; back-links are derived by the Phase 4 graph layer at query time. Atomic single OCC update on the OLD doc; sets status="superseded", superseded_by, and superseded_reason.
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": {
"doc_id": "<doc_id>",
"replacement_doc_id": "<replacement_doc_id>",
"reason": "<reason>"
},
"name": "supersede"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | DocId of the document being superseded | |
| reason | Yes | Why the old document is being retired; written to superseded_reason | |
| replacement_doc_id | Yes | DocId of the replacement document |