Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Delete design tokens
WONDER_MCP_DELETE_DESIGN_TOKENSDeletes design tokens by name. All or nothing: an entry that fails changes nothing, and the result names it. Deleting a token or icon unbinds its uses: bound elements keep the last value or markup and stop updating, and tokens aliased to a deleted token fall back to its value. Returns the deleted names, the count restyled and the remaining tokens. Rename or delete tokens and icons only when the user asks, and add an icon only when the user asks or a design built from their code needs it.
Delete elements
WONDER_MCP_DELETE_ELEMENTSDeletes elements with their whole subtrees; an artboard root's id deletes the artboard. Deleting a main component leaves its instances in place with their look and values, their main missing until someone restores it. Pass every id in one call. Returns a result per id.
Delete icons
WONDER_MCP_DELETE_ICONSDeletes icons from the file's library by name. All or nothing: an entry that fails changes nothing, and the result names it. Deleting a token or icon unbinds its uses: bound elements keep the last value or markup and stop updating, and tokens aliased to a deleted token fall back to its value. Returns the deleted names and the remaining catalog. Rename or delete tokens and icons only when the user asks, and add an icon only when the user asks or a design built from their code needs it.
Update elements
WONDER_MCP_UPDATE_ELEMENTSEdits one artboard's elements with JSX comment directives, each followed by its payload, if any. The result returns each directive's tree with its ids; an edit's is one line. Directives (X and Y are data-node-ids you read): - {/* insert after X */}, {/* insert before X */}, {/* insert as first child of X */}, {/* insert as last child of X */} + one new element without a data-node-id, children nested inline. - {/* edit X */} + one self-closing element of X's kind: sets X's attributes, keeps its children. Omitted attributes keep their value; a declared className replaces the whole list. A leaf span may carry new text. - {/* replace X */} + X's full new subtree; children left out are removed. - {/* delete X */}, {/* move X after Y */}, {/* move X before Y */}, {/* move X to first child of Y */}, no payload. {/* insert as last child of hero */} <div data-node-label="Get Started Cta" className="flex gap-2 bg-[var(--brand-primary)]"><span data-node-label="Get Started Cta Text">Get started</span></div> A call cannot target an element it creates. Editing a main changes all its instances. Each turn, use get_element_code or a matching delivered host code read before an element's first edit or replace. Keep what the request leaves alone. Markup: div; span for all text; img (stock photos: images.unsplash.com); svg inside a labeled div, no text in it. Static Tailwind className (no md:/lg:). A Title Case data-node-label on every element. Colour: a file token's cssVar, made with the change if none holds it; a literal or palette class only if the user asks. Other values a token holds use its cssVar too. Icons: the file's library (import { X } from 'wonder-icons'), else react-icons, imported at the top; never emoji. Directives apply when the call returns: build a new design one section per call, replacing or deleting each skeleton placeholder in the call that fills it. Wait for each call to return before the next on the same artboard.