Connect two saved STEM memories
linkCreate a directed relationship between two existing memories in the authenticated user's STEM account: builds_on, supports, contradicts or relates. Use numeric memory IDs returned by remember or recall; both memories must belong to this account. Returns the new link ID, from, to, type and weight. Each call creates a new link; retries can duplicate links. This organizes saved context; it does not connect assistant accounts, import conversations or link to other users' memories.
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": "<from>",
"to": "<to>"
},
"name": "link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Numeric ID of the target memory in this account, from remember or recall. For builds_on, the source memory builds on this target. | |
| from | Yes | Numeric ID of the source memory in this account, from remember or recall. Do not pass graph display IDs such as m12, core or you. | |
| type | No | Relationship from the source memory to the target memory (default relates). | |
| weight | No | Relationship strength, conventionally 0–1 (default 1); the server does not clamp this value. |