engram_link
Link two stored memories with a defined relation (based_on, derived_from, contradicts, or supersedes) to capture evidence, inference, conflict, or replacement; undo links with confirmation.
Instructions
Record how two stored memories relate: 'memory_id target_id'. based_on: target is evidence for memory. derived_from: memory was inferred from target. contradicts: they conflict, undecided. supersedes: memory replaces target. undo=true removes the link: that returns a preview unless confirm=true and a reason are given, and the removal is logged. Safe to retry.
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_id": "<memory_id>",
"relation": "<relation>",
"target_id": "<target_id>"
},
"name": "engram_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| undo | No | ||
| reason | No | Why they are linked, or why the link is removed (required to confirm an undo) | |
| confirm | No | Apply the change. Without it the tool only returns a preview of what would change and changes nothing | |
| relation | Yes | ||
| memory_id | Yes | ||
| target_id | Yes |