Add Canvas Edge
add_canvas_edgeCreate a directed edge between two existing canvas nodes. Optionally set a label or specify anchor sides for the connection.
Instructions
Create a directed edge connecting two existing canvas nodes. Both fromNode and toNode must already exist on the canvas (use read_canvas to list node ids, or capture the id returned by add_canvas_node). Optional fromSide/toSide control which face of each node the edge anchors to. Returns the generated edge UUID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional text label rendered on the edge | |
| toNode | Yes | UUID of the target (destination) node - must already exist on the canvas | |
| toSide | No | Face of the target node the edge arrives at (default: auto-chosen by Obsidian) | |
| fromNode | Yes | UUID of the source (origin) node - must already exist on the canvas | |
| fromSide | No | Face of the source node the edge leaves from (default: auto-chosen by Obsidian) | |
| canvasPath | Yes | Relative path from vault root to the target .canvas file |