Productivity & Projects

Wonder MCP

Create and manage Wonder design files, canvas elements, prototypes, assets, design systems, and comments through Wonder's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Create artboard

    Creates an artboard from the root JSX in code. The canvas is a whiteboard: one artboard holds one design. A set of separate items (options, concepts, logos, icons, illustrations, empty states, the states or variants of a button or card, moodboard images) is one artboard per item, sized to that item and laid out side by side, never wrapped in a board, sheet, showcase or page frame and never given a page skeleton, title header or viewport. A group's caption is its own small text artboard. One frame holds several items only when the user asks for one composed piece (a slide, a poster, a diagram) or a library import's Design Guide nests them. A multi-section page starts as a two-level skeleton: one placeholder div per section, each holding divs for its parts, sized and laid out (w-, h-, min-h-, flex, grid, gap), unstyled, with specific Title Case labels for what they become (Plan Columns, not Plan Columns Skeleton). If unsure whether it is a page or a standalone design of one block, add it. For app reproductions, read source structure first. Fill sections as their inputs become known; skeletons show structure, not substantive content or finished designs. The directives that build a section replace or delete its skeleton placeholders, so none survives next to real content. The result holds a tree per created or changed element, one line per element with its tag, data-node-id and data-node-label, and every id the document assigned: target those ids next without another read. A tree longer than 300 lines comes back as its root line plus "… N more elements — read the tree with get_element_tree"; read it before building into it. Its first line is the artboard root, which you build into with update_elements. 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.

  • Create design tokens

    Creates design tokens in the file. All or nothing: an entry that fails changes nothing, and the result names it. An alias may name a token earlier in the call. Where the source layers semantic names over a raw palette, keep both layers: create the raw token first, then the semantic token as its alias, never flattening the reference to its resolved value. Returns the created names and the file's tokens with each cssVar. Check the file's tokens and icon catalog before adding to them, and reuse a match by value and by role instead of adding a near-duplicate or a literal beside it.

  • Create file

    Creates a Wonder design file on the server and returns its fileId, first pageId, branchName and a url for your reply; nothing opens on the user's screen. Never create a Wonder file on your own, even when no file is attached or open: create one only when the user asks for a new file or picks one when you ask. When the request names no file and none is open, look through the user's files with list_files for the file and page the work fits best, then ask where it should go with your host's question tool, falling back to your reply only when it has none, offering that place, another of their files and a new file (one choice per organization when they have more than one). It goes into organizationId, else nearFileId's organization, else the user's only one; when several fit and you named none, the result lists them. Rename it later with rename_file. Files cannot be deleted here: the user deletes them in Files.

  • Create folder

    Creates a folder in the user's Files, at the organization's root or inside parentFolderId, and returns its folderId for create_file. Create one when the user asks, or when their files already live in folders (folderName in list_files) and the file you are about to create belongs in one that is missing. The organization is chosen as for create_file.

  • Create icons

    Adds icons to the file's library: up to 20 ({ name, svg, keywords? }, markup within 500000 characters in all). The server sanitizes each svg: a viewBox is kept or synthesized, and monochrome paints become currentColor. Returns created names, skipped duplicates and per-item errors. Bind an icon by the componentName the catalog returns, never one built from its name: a name collision adds a suffix and a rename changes it, so read the names back after creating, importing or renaming icons. Check the file's tokens and icon catalog before adding to them, and reuse a match by value and by role instead of adding a near-duplicate or a literal beside it. 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.

  • Create page

    Add a page to a Wonder file, named by its fileId or by the pageId of any page in it, at the end of its page list unless afterPageId places it. It runs on the server and needs no editor, and it never moves anyone's view: everyone who has the file open sees the new page appear in their page list and stays on the page they are on. The answer carries the new page's pageId, which every page-scoped tool takes at once. Put new canvas work on its area's page: the page you hold when it fits, else the file's page for that product area, flow or kind of work, even under a broader name. Add a page only when asked or none covers the area, and make it the page for the whole area, not this one design.

  • Create prototype

    Creates a working prototype from canvas frames: a node on the canvas that plays a React module built from them, for everyone in the file. A prototype of canvas frames, or a change to one, is made with the prototype tools, never in the repository, the Preview or a dev server. Call it as soon as you know the frames: a prototype node sized from them appears beside them, building while you write its module. Returns the prototypeId, its revision, the frames' code (no need for get_element_code) and the rules for writing the module; read them, then write the whole module with update_prototype.

  • Duplicate elements

    Duplicates an element and its whole subtree. The source may be an in-tree element or an artboard root: the subtree is copied, and only where the copy lands differs. A duplicated main is an instance. When asked for a code component and its placements, reuse a matching canvas node or build it first, standalone if requested, otherwise at its first call site. Place copies with one duplicate_elements call, varying text and className with propertyOverrides; never rewrite each copy, and a duplicated instance stays linked. Fill placements as their source details are known, keeping surrounding UI. Repeated items in a new design (cards, rows, features) are one .map() over an inline data array in a single insert, with the layout classes on the div that wraps it. On a new artboard, placement attributes apply to its root element only, never to a nested label. An artboard-root source with targetParent and position nests its subtree under the target. A variation is a copy of the original placed as its own artboard (duplicate_elements with newArtboard true) and changed there, so it sits beside the original for comparison and never replaces it. The result holds a tree per created or changed element, one line per element with its tag, data-node-id and data-node-label, and every id the document assigned: target those ids next without another read. A tree longer than 300 lines comes back as its root line plus "… N more elements — read the tree with get_element_tree"; read it before building into it. It returns {"trees": [...], "newDuplicateIds": [...]}: one tree per copy, never the container the copies landed in, and trees[i] belongs to newDuplicateIds[i], each copy's root id in copy order. When the copies' trees pass 1200 lines together, every tree comes back as its root line, and trees past even that are replaced by one final "… N more trees — read them with get_element_tree" entry. A copy that could not be read back holds its place with a one-line note naming its id.

  • Fetch image description

    Fetches a text description of an image: cheaper than its pixels when you only need to know what it shows. Pass assetId or a public url. Image generation and vectorizing read a reference image themselves, so hand them the image (attached, selected, generated earlier, a search result or a URL in element code), never its description, and never run fetch_image_description on it first.

  • Generate image

    Generates a raster image from a prompt and, unless placeOnCanvas is false, places it on the canvas as a new artboard. Returns the image URL, its size and the artboard's dataNodeId. Optional imageUrls guide a remix or a style. Photos and other raster images come from generate_image, a new vector drawn from a description from generate_svg, and a vector traced from one supplied image from vectorize_image; offer generate_svg when the user wants a restyle rather than a trace.

  • Generate svg

    Generates a vector SVG from a prompt. Generating an SVG and vectorizing an image are for an explicit request (an SVG, a logo, a mascot or an illustration; trace, vectorize or convert this image): each takes 30 to 90 seconds and a paid model call, places its own artboard and returns the dataNodeId to continue from. A design's own imagery uses icons or photos instead. Optional references (up to 14) ground the style or subject. Photos and other raster images come from generate_image, a new vector drawn from a description from generate_svg, and a vector traced from one supplied image from vectorize_image; offer generate_svg when the user wants a restyle rather than a trace.

  • Reply to comment thread

    Posts a reply in a comment thread. The reply shows as Wonder, with the signed-in person and the client you run in beside it, so write it as the outcome of the work: what you changed or found, in a sentence or two. Reply once you have done or answered what the thread asks, not just to acknowledge it: a reply cannot be edited afterwards. A matching active Wonder run owned by your session finishes with the reply; this does not resolve the thread. Posting can succeed even if finishing the run fails, so do not post a duplicate reply to retry finishing.

  • Submit feedback

    Sends feedback to the Wonder team so Wonder improves and agents have an easier time in future: a bug, a step that should be faster or simpler, a capability Wonder lacks, guidance that contradicted itself or was wrong, missing or unclear, or anything else the user wants Wonder to hear. Propose a report, saying what it would hold, when a Wonder tool fails in a way you can reproduce, when you had to work around something Wonder cannot do, or when the same awkward step repeats; it sets initiatedBy to agent. For user-requested feedback, use their words and initiatedBy user. A report or file that carries the user's design, code, names or business needs the user's approval first. Fill every field you can; the exact error text, the steps, the page and a proposed fix or where to look are what gets a report fixed. Leave out secrets, credentials and personal data; redacting them is your job. Send each distinct issue once, after you finish or give up, not while retrying. A report is about Wonder itself: something in it that failed, was missing, was unclear or was harder than it should be, never a status or summary of your own work; when no such problem came up, send only what the user asked for. Do not report a plan, billing, permission, sign-in or rate limit; the user's own mistakes, such as a wrong id or link; your own mistakes, the user's machine, or a call that worked on retry. Tell the user what the error says instead, and report it only when they ask you to.

  • Vectorize image

    Traces one supplied raster image into a clean SVG; there is no prompt. Generating an SVG and vectorizing an image are for an explicit request (an SVG, a logo, a mascot or an illustration; trace, vectorize or convert this image): each takes 30 to 90 seconds and a paid model call, places its own artboard and returns the dataNodeId to continue from. Photos and other raster images come from generate_image, a new vector drawn from a description from generate_svg, and a vector traced from one supplied image from vectorize_image; offer generate_svg when the user wants a restyle rather than a trace.