Add Canvas Edge
add_canvas_edgeCreate a directed edge between two existing nodes on an Obsidian canvas. Specify source and target node UUIDs, optionally label the edge, and choose anchoring sides. Returns the new edge's UUID.
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 |
|---|---|---|---|
| canvasPath | Yes | Relative path from vault root to the target .canvas file | |
| fromNode | Yes | UUID of the source (origin) node — must already exist on the canvas | |
| toNode | Yes | UUID of the target (destination) node — must already exist on the canvas | |
| label | No | Optional text label rendered on the edge | |
| fromSide | No | Face of the source node the edge leaves from (default: auto-chosen by Obsidian) | |
| toSide | No | Face of the target node the edge arrives at (default: auto-chosen by Obsidian) |