link_memories
Connect two memories with a relationship type to build a knowledge graph. Use for linking bug fixes to architecture decisions or preferences to patterns.
Instructions
Connect two related memories with a named relationship. Use this to build a knowledge graph — e.g., linking a bug fix to the architecture decision that caused it, or connecting a preference to the pattern it led to.
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>",
"related_memory_id": "<related_memory_id>",
"relationship": "<relationship>"
},
"name": "link_memories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory_id | Yes | The source memory ID | |
| related_memory_id | Yes | The target memory ID to link to | |
| relationship | Yes | How the memories relate: led_to (A caused B), contradicts (A conflicts with B), extends (A builds on B), related (general connection) |