Add Canvas Edge
add_canvas_edgeCreate a directed edge between two existing canvas nodes, optionally set a label or anchor sides, and get the generated edge 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.
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": {
"canvasPath": "<canvasPath>",
"fromNode": "<fromNode>",
"toNode": "<toNode>"
},
"name": "add_canvas_edge"
}
}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 |