memory_supersede
Replace an existing memory with a new one. Creates the replacement, marks the old memory as deprecated (superseded_by → new), and creates a supersedes link. Tags from the old memory are automatically inherited by the new one (merged with any caller-provided tags). Mutates. Not idempotent. Returns the new memory with id and shortId. SOFT-DELETED: old_memory_id must refer to an active (non-deleted) memory; soft-deleted rows are not superseded by this tool (use memory_update to restore, or memory_recall with include_deleted only for read). Updating a deleted memory via memory_update is the supported undelete path, not memory_supersede.
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": {
"old_memory_id": "<old_memory_id>",
"headline": "<headline>"
},
"name": "memory_supersede"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Body text of the new replacement memory | |
| kind | No | Memory type for the replacement | note |
| tags | No | Tags for the replacement memory (merged with inherited tags from the old memory) | |
| team | No | Team slug filter. Omit for mixed personal+team results. Use "personal" for personal-only. | |
| signer | No | Agent identity -- who wrote this. Required fields: agent_id, run_id. | |
| source | No | Source metadata for the replacement memory | |
| headline | Yes | Headline of the new replacement memory | |
| metadata | No | Arbitrary key-value metadata for the replacement | |
| collection | No | Target team collection for team-scoped supersede (required when old_memory_id is team-namespaced unless inferrable from old memory) | |
| collections | No | Collection slugs or IDs for the replacement | |
| canon_status | No | Canon status for the replacement (defaults to accepted) | accepted |
| old_memory_id | Yes | ID of the memory being superseded |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | UUID of the memory | |
| body | Yes | Memory body content | |
| kind | No | Memory type | |
| tags | Yes | Tags attached to the memory | |
| status | No | Memory status | |
| shortId | Yes | Human-friendly short ID (mem-*) | |
| headline | Yes | Memory headline | |
| metadata | Yes | User-provided metadata | |
| createdAt | Yes | ISO 8601 creation timestamp | |
| updatedAt | Yes | ISO 8601 last-update timestamp | |
| confidence | No | Confidence percentage (0-100) | |
| canonStatus | No | Canon status | |
| collections | Yes | Collections containing this memory | |
| verificationStatus | No | Verification status | |
| restoredFromDeleted | No | True when this update revived a soft-deleted memory (status was deleted, now active) |