Add canvas edge
add_canvas_edgeConnect two existing canvas nodes by adding an edge between them, with optional label, color, and source/target sides. Use it to define relationships in Obsidian canvas files.
Instructions
Add an edge between two existing nodes in canvas
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 |
|---|---|---|---|
| color | No | Color: preset "1"-"6" or hex such as "#ff0000" | |
| label | No | Edge label | |
| vault | No | Vault name. May be omitted when only one vault is configured; see list_vaults. | |
| toNode | Yes | Target node ID | |
| toSide | No | Side of the target node the edge arrives at (default: left) | |
| fromNode | Yes | Source node ID | |
| fromSide | No | Side of the source node the edge leaves from (default: right) | |
| canvasPath | Yes | Path to canvas file (".canvas" may be omitted) |