Add canvas node
add_canvas_nodeAdd a file, text, link, or group node to an Obsidian canvas at specified coordinates and dimensions.
Instructions
Add a node to canvas (file, text, link, or group)
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>",
"nodeType": "<nodeType>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "add_canvas_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate | |
| y | Yes | Y coordinate | |
| url | No | URL (for link nodes) | |
| file | No | File path (for file nodes) | |
| text | No | Text content (for text nodes) | |
| color | No | Color: preset "1"-"6" or hex such as "#ff0000" | |
| label | No | Label (for group nodes) | |
| vault | No | Vault name. May be omitted when only one vault is configured; see list_vaults. | |
| width | Yes | Node width | |
| height | Yes | Node height | |
| subpath | No | Heading or block inside the file, e.g. "#Heading" (for file nodes) | |
| nodeType | Yes | Type of node | |
| canvasPath | Yes | Path to canvas file (".canvas" may be omitted) |