add_moodboard_items
Add images, text, links, shapes, and other items to a moodboard file, plus optional connectors, writing directly to disk so open boards re-parse automatically.
Instructions
Add items (and optional connectors between them) to a moodboard file. Writes directly to the .moodboard.md file on disk; the app re-parses open boards automatically. Item types: image, doc, video, text, link, swatch, frame, shape, sticky. Coordinates are world pixels, origin top-left, +x right / +y down — start near (0,0), lay items out in 320px columns with 40px gutters, max 4 items per row, use frames as section backgrounds. Omit w/h to get the type default; omit h on text and sticky notes to fit the box to its text. For diagrams use draw_on_moodboard instead, which needs no coordinates. Image src MUST be "resources/images//" or an https:// URL — never base64, data: or absolute paths (such items are dropped). Connectors may reference items added in this same call with "#" (0-based index into items) or by a name you put in the item's "ref" field. Pass only connectors to join items already on the board. Results include issues: anything that overlaps, is cut off or is hidden behind a box. Items are appended (frames go to the back layer); the file is never rebuilt — use clear_moodboard to start over. Call get_moodboard_guide first.
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": "add_moodboard_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Items to add (max 500 per call). Ids are assigned by the system and returned. Optional when connectors are given. | |
| workspace | Yes | Workspace path or name | |
| connectors | No | Optional connectors. Endpoints are an existing item id, "#<index>" for an item in this call, { "item": id|"#<index>", "side": "auto"|"top"|"right"|"bottom"|"left" }, or a free point { "x", "y" }. Unknown endpoints and self-loops are dropped. | |
| 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. | |
| includeSummary | No | Also return an English summary of the whole board (default: false; read_moodboard always includes it) |