Metis · Memory Curator — Link Memories
link_memoriesCreate typed relationships between two memory entries across layers to build a traversable knowledge graph for recall.
Instructions
Create a typed relationship between two memory entries.
Links two entries across any memory layers — episodic, semantic, procedural,
memory (palace), or knowledge. This builds a lightweight knowledge graph on
top of the existing memory layers, enabling graph traversal during recall.
Example relations: 'informed_by', 'contradicts', 'elaborates', 'derived_from',
'supersedes', 'related_to', 'supports', 'led_to'.
Args:
source_layer: Layer of the source entry ('episodic', 'semantic',
'procedural', 'memory', 'knowledge').
source_id: Row ID of the source entry in its layer.
target_layer: Layer of the target entry.
target_id: Row ID of the target entry in its layer.
relation: Relationship type (e.g. 'informed_by', 'contradicts').
note: Optional free-text note explaining the relationship.
Returns:
Confirmation of the created link, or an error if it already exists.
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": {
"source_layer": "<source_layer>",
"source_id": "<source_id>",
"target_layer": "<target_layer>",
"target_id": "<target_id>",
"relation": "<relation>"
},
"name": "link_memories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| relation | Yes | ||
| source_id | Yes | ||
| target_id | Yes | ||
| source_layer | Yes | ||
| target_layer | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |