link
Create relationships between lore items or documents using mutual links, reading order, or replacement actions. Supports auto-classification of non-id values.
Instructions
link(a, b, action=) — connect two items (dc↔dc / lr↔lr / dc↔lr auto-detected, prefix matching OK). a/b may also be a file path or an existing title — non-id-shaped values are auto-classified (same as links= in add/edit). Undo (inverse) = unlink(a, b) — same arguments.
action has 3 modes (extends the member/config(action=) convention):
action='related' (default, same if omitted) → mutual link (symmetric). Same as link(a, b) — dc↔dc/lr↔lr/dc↔lr
action='flow' → not a mutual link but document order (a→b direction, doc↔doc only): read a, then b.
action='supersede' → "a is replaced by b" — a=old (dropped, head=False/dropped), b=target (alive, must be an existing item — none is created). lore↔lore or doc↔doc only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | ||
| b | No | ||
| help | No | ||
| action | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |