sage_link
Create typed relationships between memories to build a knowledge graph. Provide source and target memory IDs and a relation like supports, contradicts, or precedes to record how memories connect.
Instructions
Create a typed relationship between two existing memories. Use this to build a knowledge graph over memory: record that one memory supports, contradicts, causes, precedes, or refines another. The link is directional (source → target). Common link_type values: related (default), supports, contradicts, causes, precedes, refines, duplicates — but any short relation label is accepted.
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_id": "<source_id>",
"target_id": "<target_id>"
},
"name": "sage_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link_type | No | Relationship type, e.g. supports, contradicts, causes, precedes, refines, related | related |
| source_id | Yes | ID of the source memory (the 'from' side of the relationship) | |
| target_id | Yes | ID of the target memory (the 'to' side of the relationship) |