add_canvas_node
Add nodes to Obsidian canvases including files, text, links, or groups with specified position and dimensions to organize visual knowledge structures.
Instructions
Add a node to canvas (file, text, link, or group)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
canvasPath | Yes | Path to canvas file | |
color | No | Node color (1-6) | |
file | No | File path (for file nodes) | |
height | Yes | Node height | |
label | No | Label (for group nodes) | |
nodeType | Yes | Type of node | |
text | No | Text content (for text nodes) | |
url | No | URL (for link nodes) | |
vault | Yes | Vault name | |
width | Yes | Node width | |
x | Yes | X coordinate | |
y | Yes | Y coordinate |
Input Schema (JSON Schema)
{
"properties": {
"canvasPath": {
"description": "Path to canvas file",
"type": "string"
},
"color": {
"description": "Node color (1-6)",
"type": "string"
},
"file": {
"description": "File path (for file nodes)",
"type": "string"
},
"height": {
"description": "Node height",
"type": "number"
},
"label": {
"description": "Label (for group nodes)",
"type": "string"
},
"nodeType": {
"description": "Type of node",
"enum": [
"file",
"text",
"link",
"group"
],
"type": "string"
},
"text": {
"description": "Text content (for text nodes)",
"type": "string"
},
"url": {
"description": "URL (for link nodes)",
"type": "string"
},
"vault": {
"description": "Vault name",
"type": "string"
},
"width": {
"description": "Node width",
"type": "number"
},
"x": {
"description": "X coordinate",
"type": "number"
},
"y": {
"description": "Y coordinate",
"type": "number"
}
},
"required": [
"vault",
"canvasPath",
"nodeType",
"x",
"y",
"width",
"height"
],
"type": "object"
}