Link two entities
memory_linkRecord durable subject–predicate→object relationships to query structured facts later, with optional source memory and validity window for time-bounded facts.
Instructions
Record a durable relationship as subject -predicate→ object (e.g. who owns what, which file is canonical, who reports to whom, which key belongs to which service) when a structured fact is worth querying later. Optionally attach the memory it came from (src_id) and a validity window (valid_from/valid_to, unix timestamps) for time-bounded facts. Query these edges with memory_relations. Use alongside memory_store (prose), not instead of it. Idempotent.
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": {
"subject": "<subject>",
"predicate": "<predicate>",
"object": "<object>"
},
"name": "memory_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object | Yes | ||
| src_id | No | ||
| subject | Yes | ||
| valid_to | No | ||
| namespace | No | ||
| predicate | Yes | ||
| valid_from | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |