diagram_link
Attach a memory to a specific diagram step so notes, anti-patterns, or reasoning explain why that step exists.
Instructions
Attach another memory to one specific step of a diagram.
What turns a diagram into an index of its domain: the step states what happens, the linked note/anti_pattern/reasoning states why it is that way. Point at the step the memory actually concerns -- for an edge to the diagram as a whole use link_memories() instead, and to say the branch continues in another flow, diagram_jump().
get_memory() on the linked memory reports the diagrams that reference it, so the connection is visible from both ends.
Returns {"ok": True}, or {"ok": False, "errors": [...]} for an unknown diagram, step or memory, a link from a diagram to itself, or a delete with no such link.
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": {
"uid": "<uid>",
"node_key": "<node_key>",
"target_uid": "<target_uid>"
},
"name": "diagram_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | the diagram. | |
| delete | No | removes the link between node_key and target_uid. | |
| node_key | Yes | the step the memory explains. | |
| target_uid | Yes | the memory to attach. | |
| relation_type | No | how the memory relates to the step; 'explains' unless given. Linking the same step and memory again replaces it. | explains |