connect
Create typed, narrative relationships between memories to form an associative knowledge network.
Instructions
Connect memories with typed, narrative relationships. Valid relationship types are: caused_by, led_to, blocked_by, unblocks, connects_to, contradicts, depends_on, is_example_of, governed_by — and all memory IDs must already exist before calling this.
Single mode (omit items): provide from_memory, to_memory, relationship directly.
Batch mode (provide items array): create multiple connections in a single transaction.
Relationship guidance: caused_by / led_to describe the same link from opposite ends (A caused_by B ≡ B led_to A). blocked_by / unblocks describe dependency on resolving an external issue. depends_on is a hard technical or logical prerequisite. contradicts marks a direct conflict. is_example_of marks an illustration. governed_by links a memory to a standing rule or constraint that it must satisfy. connects_to is the general fallback — use it only when no typed relationship fits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_memory | No | ID of the source memory. Required in single mode; omit when using items. | |
| items | No | Batch mode: array of edge objects. Each must have from_memory, to_memory, relationship (string). Optional: narrative (string). | |
| narrative | No | The story of this connection - why these two things are linked | |
| relationship | No | Type of relationship. Required in single mode. | |
| to_memory | No | ID of the target memory. Required in single mode; omit when using items. |