Add Canvas Node
add_canvas_nodeAdd a node to an Obsidian canvas with type (text, file, link, or group), content, position, size, and color. Returns UUID for connecting edges with add_canvas_edge.
Instructions
Add a new node to an Obsidian canvas and persist the updated file. Supports four node types: 'text' (markdown block), 'file' (embedded vault note reference), 'link' (external URL), and 'group' (labeled container). Returns the generated node UUID, needed to connect nodes via add_canvas_edge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| canvasPath | Yes | Relative path from vault root to the target .canvas file | |
| type | Yes | Node kind: 'text' = markdown block, 'file' = vault note reference, 'link' = external URL, 'group' = labeled container | |
| content | Yes | Interpretation depends on type: text body for 'text', relative note path for 'file', URL for 'link', display label for 'group' | |
| x | No | X coordinate on the canvas (default: 0) | |
| y | No | Y coordinate on the canvas (default: 0) | |
| width | No | Node width in pixels (default: 250) | |
| height | No | Node height in pixels (default: 60) | |
| color | No | Color: '1'-'6' for Obsidian's preset palette (red/orange/yellow/green/cyan/purple), or a hex code like '#ff5555' |