create_design
Add a design to a space: a canvas of artboards (landing pages, app screens, posters…) built on a design system (tokens) and components. People select any element to restyle it, comment, and click through linked artboards. Read guide topic "design" first. Returns the files with versions and any problems found.
Parameters
space_idstringrequiredtitlestringrequiredtokensobjectcomponentsobject[]Show child attributes
namestringrequiredhtmlstringrequiredwidthintegerheightintegerboardsobject[]requiredShow child attributes
namestringhtmlstringrequiredwidthintegerrequiredheightintegerrequiredkindstringscreen, page.viewportsobject[]Show child attributes
wintegerrequiredhintegerrequiredthemestringthemestringread_design
Read a design as it is now, including people’s edits: the canvas (boards with size, kind, viewports), tokens.json and the CSS variables it generates, components and artboards — each file with its version for edit_design/write_design. Pass files to read only some.
Parameters
item_idstringrequiredfilesstring[]write_design
Write whole design files in one all-or-nothing call: artboards (Name.html), components (components/Name.html) or tokens.json. Each file: path, full content (null deletes it), base_version = the version you read (null for a new file), and for a new artboard its board {w, h, kind, viewports}. The canvas follows by itself. If anyone saved a file after your version, nothing is written and the error names the files to read again. For small changes use edit_design.
Parameters
item_idstringrequiredfilesobject[]requiredShow child attributes
pathstringrequiredcontentstring | nullrequiredbase_versioninteger | nullrequiredboardobjectShow child attributes
wintegerhintegerxnumberynumbertitlestringkindstringscreen, page.themestringviewportsobject[]Show child attributes
wintegerrequiredhintegerrequiredthemestringedit_design
Change one design file in place, leaving everything else (and people’s edits) as it is. On an artboard or component: set_style (inline style properties), set_text, set_html, replace, insert (before/after/prepend/append html), remove, set_attrs, add_class/remove_class — each by CSS selector — and replace_text (exact text). On tokens.json: set_token / remove_token. Edits apply in order, all or none, against base_version. board resizes or moves the file's frame (e.g. set h to the content height render_design reported).
Parameters
item_idstringrequiredfilestringrequiredbase_versionintegerrequirededitsobject[]Show child attributes
opstringrequiredset_style, set_text, set_html, replace, insert, remove, set_attrs, add_class, remove_class, replace_text, set_token, remove_token.selectorstringallbooleanstylesobjecttextstringhtmlstringpositionstringbefore, after, prepend, append.attrsobjectclassesstring[]findstringreplacestringtokenstringvalueanytypestringmodestringdescriptionstringboardobjectShow child attributes
wintegerhintegerxnumberynumbertitlestringkindstringscreen, page.themestringviewportsobject[]Show child attributes
wintegerrequiredhintegerrequiredthemestringrender_design
See a design: renders artboards in Chromium exactly as the canvas shows them and returns screenshots plus problems with selectors — things sticking out of the frame, cut-off text, frame height vs content height, broken images, fonts not loaded, small text and tap targets, and WCAG failures from axe-core (contrast ratio, alt text, names, heading order). Every frame of a page (each viewport) is checked. Tall frames come in slices; pass from_y for the rest.
Parameters
item_idstringrequiredboardsstring[]screenshotsbooleanfrom_yintegerfind_icons
Search Lucide icon names (2,000+) for <x-icon name="…">. Query by meaning, e.g. "arrow right", "settings", "shield check".
Parameters
querystringrequiredlimitintegerfind_fonts
Google Fonts families (most popular first) to use in font tokens or font-family; any family you name loads by itself.
Parameters
querystringcategorystringSans Serif, Serif, Display, Handwriting, Monospace.limitintegerdesign_history
The versions of one design file, newest first (each save makes one; the last 100 are kept): who saved it and when. Read an old one with read_design_version, bring it back with restore_design_version.
Parameters
item_idstringrequiredfilestringrequiredread_design_version
The content of one earlier version of a design file (see design_history).
Parameters
item_idstringrequiredfilestringrequiredversionintegerrequiredrestore_design_version
Bring back an earlier version of a design file: its content becomes the newest version (the current one stays in the history). base_version is the current version you read; refused if someone saved since.
Parameters
item_idstringrequiredfilestringrequiredversionintegerrequiredbase_versionintegerrequired