memory_associate
Create typed links between memories (inverse links auto-created for known types). Mutates. Not idempotent — calling twice creates duplicate links. Returns the created link objects with id and shortId. Common relation types: belongs_to, supports, depends_on, contradicts, alternative_to, expands, derived_from, example_of, supersedes. SOFT-DELETED: Does not target soft-deleted memories — source and targets must be active (status not deleted) or the call fails with memory_not_found. This tool does not restore deleted rows; use memory_update first if you need to undelete. To remove links, use the separate tool memory_unassociate (not this one).
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": {
"from_memory_id": "<from_memory_id>",
"targets": "<targets>"
},
"name": "memory_associate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signer | No | Agent identity -- who wrote this. Required fields: agent_id, run_id. | |
| targets | Yes | Target memories to link to | |
| from_memory_id | Yes | Source memory ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| links | Yes | Created link objects |