draw_on_moodboard
Draw flowcharts, pipelines, architecture maps, org charts, mind maps, or card grids on a moodboard by supplying nodes and edges; layout, box sizing, and arrow routing are automatic—no coordinates needed.
Instructions
Draw a diagram on a moodboard in one call: flowcharts, pipelines, architecture maps, org charts, mind maps or card grids. Give nodes and edges; Hillnote does the layout, sizes each box to its text and routes the arrows, so you never compute coordinates. Prefer this over add_moodboard_items for anything with connections or more than a few items. Edges alone are enough: edges [["Browser","API"],["API","Database","reads"]] creates all three nodes. Returns refs (your node ids → item ids, for later edits), bounds, warnings and issues. Empty issues means nothing overlaps, is cut off or is hidden behind a box. New drawings go to the right of existing content unless "at" is given. Pass "name" to redraw the same diagram in place later: its items keep their ids, but any positions changed by hand are reset.
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": {
"workspace": "<workspace>",
"moodboardPath": "<moodboardPath>"
},
"name": "draw_on_moodboard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Top-left corner in world pixels. Defaults to the right of existing content. | |
| name | No | Names this drawing so calling again with the same name replaces it in place and keeps its item ids. Positions changed by hand are reset. | |
| edges | No | Arrows between node ids (max 400): ["from", "to"], ["from", "to", "label"], or { from, to, label?, dash?, color?, curve?, start?, end?, width? }. Keep labels to 3 words. | |
| nodes | No | Boxes to draw (max 200). A plain string is both id and label. Optional when edges name every node. | |
| groups | No | Titled frames that hold nodes (flow, tree and grid). Nodes join one with "group". | |
| layout | No | flow (default): flowcharts, pipelines, architecture, dependencies. tree: org charts and hierarchies. mindmap: branches around the first node. grid: cards in rows, for things with no structure. | |
| direction | No | For flow and tree: TB is top to bottom, LR is left to right. auto (default) picks whichever shape fits a screen better. | |
| edgeStyle | No | Arrow shape. auto (default) uses right angles for trees and curves otherwise. | |
| workspace | Yes | Workspace path or name | |
| moodboardPath | Yes | Moodboard file path relative to workspace (e.g., "documents/brand-inspiration.moodboard.md"). The file must already exist — create it with add_document first. |