Loading...
Loading...
Programmatically create and manipulate Obsidian Canvas (.canvas) files using JSON Canvas Spec 1.0. Enables agents to generate visual flowcharts, architecture diagrams, and planning boards. Use when creating or editing visual canvas files.
npx skill4agent add richfrem/agent-plugins-skills obsidian-canvas-architectpip-compile ./requirements.in
pip install -r ./requirements.txt./requirements.txtobsidian-vault-crud.canvas.canvas{
"nodes": [
{"id": "1", "type": "text", "text": "Hello", "x": 0, "y": 0, "width": 250, "height": 60},
{"id": "2", "type": "file", "file": "path/to/note.md", "x": 300, "y": 0, "width": 250, "height": 60}
],
"edges": [
{"id": "e1", "fromNode": "1", "toNode": "2", "fromSide": "right", "toSide": "left"}
]
}| Type | Required Fields | Purpose |
|---|---|---|
| | Inline text content |
| | Reference to a vault note |
| | External URL |
| | Visual grouping container |
| Field | Required | Description |
|---|---|---|
| Yes | Source node ID |
| Yes | Target node ID |
| No | |
| No | |
| No | Edge label text |
python ./canvas_ops.py create --file <path.canvas>python ./canvas_ops.py add-node \
--file <path.canvas> --type text --text "My Node" --x 100 --y 200python ./canvas_ops.py add-edge \
--file <path.canvas> --from-node id1 --to-node id2python ./canvas_ops.py read --file <path.canvas>obsidian-vault-crud