memory_supersede
Archive one or many thoughts or merge one thought into another while transferring its edges, without permanent deletion. Actions preview by default; confirm to execute after revalidation.
Instructions
Retire a thought without deleting it: archive one, archive a batch, or merge one thought onto another and transfer its edges. Reading is memory_recall, creating and linking memory_store, permanent removal retention_review. Actions: archive (idempotent), archive_batch (one row per requested occurrence), merge (source→target, reports edges_transferred). All actions preview by default and set meta.preview={token,destructive:true}; confirm=true executes after revalidating state. Answers { item, meta } for archive and merge, { items, meta } for archive_batch with the aggregate in meta.counts.archived/failed.
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": {
"action": "<action>"
},
"name": "memory_supersede"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory — resolves the project scope the answer reports in meta.scope; a "merge" changes no thought's project. OPTIONAL for "merge". ACCEPTED AND IGNORED for "archive" and "archive_batch". | |
| action | Yes | Action | |
| confirm | No | CONSUMED by all actions (true executes; false/omitted previews). | |
| source_id | No | REQUIRED ONLY for "merge". Source thought ID — will be archived. Rejected for other actions. | |
| target_id | No | REQUIRED ONLY for "merge". Target thought ID — will be updated. Rejected for other actions. | |
| project_id | No | Removed; there is no project argument. | |
| thought_id | No | REQUIRED for "archive". Thought ID. REJECTED for "archive_batch" and "merge". | |
| merged_tags | No | Merged tags. OPTIONAL for "merge". REJECTED for "archive" and "archive_batch". | |
| thought_ids | No | REQUIRED ONLY for "archive_batch". Thought IDs to archive in one call (1-1000); partial failures are reported per item. Rejected for other actions. | |
| preview_token | No | OPTIONAL preview token returned by a prior preview. CONSUMED by "archive", "archive_batch", "merge" (true executes with token validation; missing/stale fails). REJECTED for all other actions. | |
| merged_content | No | Replacement content for merge. OPTIONAL for "merge". REJECTED for "archive" and "archive_batch". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Action payload (structuredContent.result); JSON mirror of content[].text, except the raw-text config action, whose result is { item: { text }, meta } |