Create artboardCreates an artboard from the root JSX in code.
Create design tokensCreates design tokens in the file.
Create fileCreates 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.
Create folderCreates a folder in the user's Files, at the organization's root or inside parentFolderId, and returns its folderId for create_file.
Create iconsAdds icons to the file's library: up to 20 ({ name, svg, keywords?
Create pageAdd 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.
Create prototypeCreates a working prototype from canvas frames: a node on the canvas that plays a React module built from them, for everyone in the file.
Delete design tokensDeletes design tokens by name.
Delete elementsDeletes elements with their whole subtrees; an artboard root's id deletes the artboard.
Delete iconsDeletes icons from the file's library by name.
Duplicate elementsDuplicates an element and its whole subtree.
Edit prototypeEdits a prototype's module with small exact replacements (old text → new text); do not rewrite the whole file for a small change.
Fetch image contentFetches an image's pixels as base64 with its contentType, so you can look at it.
Fetch image descriptionFetches a text description of an image: cheaper than its pixels when you only need to know what it shows.
Find elementsFinds elements by free-form queries ("hero section", "button that says Sign Up", "green rounded card"), several per call, each ranked on its own against labels, span text and className tokens, or a component's name or id.
Finish artboardMarks an artboard you created or changed as finished and returns its design link.
Generate imageGenerates a raster image from a prompt and, unless placeOnCanvas is false, places it on the canvas as a new artboard.
Generate svgGenerates a vector SVG from a prompt.
Get additional contextReads the context around one or more elements: their artboard, depth, parent, siblings, children and subtree size.
Get artboardsLists the page's top-level artboards with data-node-id, label, position and size (x, y, width, height in canvas pixels, y downward), descendant count and depth, and up to 8 top-level children; a root or child that is a main component or an instance says so.
Get basic infoReads the user's email, organization, open file, page, branch and selection, plus the file's pages, its most-used components and openFiles (every open file with its own pageId; one is focused).
Get comment threadReads one comment thread on the requested pageId; a threadId from another page is refused.
Get design contextReads a canvas task's design context in one call: user, organization, file, page, branch, selection, the file's tokens, icons and most-used components with their properties, the page's artboards with their geometry, and the design fundamentals.
Get design guidelinesReturns design guidelines.
Get design tokensReturns the file's design tokens: { tokens: [{ id, name, type, value, cssVar, aliasOf?
Get element codeReads the React+Tailwind JSX code of one or more subtrees, one entry per id in order; an artboard root returns the whole artboard.
Get element treeReads an indented element tree of one or more subtrees, one line per element with its tag, data-node-id and data-node-label: cheaper than code, for finding ids and structure.
Get iconsReturns the file's icon library without markup: { icons: [{ id, name, componentName, colorMode, keywords?
Get skillsLoads the skill for one design job.
Get wonder infoLoads information about Wonder as a product and platform.
List comment threadsLists comment threads on a Wonder page, newest first.
List filesLists every Wonder file the user can open across their organizations (in a worktree given its own files, only those), one page at a time, with id, name, organization, and folder when it has one.
List file move destinationsLists the workspaces a file can move into, considering your permissions, each workspace's plan limits and its file limit.
List foldersLists the folders in the workspace that holds a file, empty ones included, by name, with each folderId, folderName and parentFolderId when it sits inside another.
Move fileMoves a file to another workspace, preserving its ID, pages, branches and history.
Move file to folderMoves a file into a folder of its own workspace, from one folder to another, or back to the workspace root when you leave out folderId.
Move pageMoves a page, named by its pageId from the page list get_basic_info returns, to another place in its file's page list: right after the page afterPageId names, or to the position index gives.
Open fileOpens any Wonder file the user can reach at its landing page.
Prepare feedback uploadPrepares a one-time upload URL for a file to attach to a submit_feedback report.
Prepare image uploadPrepares a one-time upload URL for a raster image on the user's machine.
Read prototypeReads a prototype's current module source, name, status, revision and source frame ids, with the rules for writing its module.
Rename elementsRenames elements (data-node-label), several per call; renaming an artboard root renames the artboard.
Rename fileRenames a Wonder file by its fileId.
Rename pageRenames a page of a Wonder file by its pageId, from the page list get_basic_info returns or the answer of the create_page that made it.
Reply to comment threadPosts a reply in a comment thread.
Set comment thread statusResolves a comment thread or reopens a resolved one.
Submit feedbackSends 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.
Take screenshotTakes a screenshot of one element exactly as the canvas renders it: to see what your edits produced, or to read a design you are building in code.
Update design tokensChanges existing design tokens: each entry names a token and sets a new value, a new aliasOf (same type, no cycle), a newName, or a rename with one of the other two.
Update elementsEdits one artboard's elements with JSX comment directives, each followed by its payload, if any.
Update iconsRenames library icons or replaces their keywords.
Update prototypeWrites a prototype's whole module source: the first time after create_prototype, or to replace it when the user asks to start over; make every other change with edit_prototype.
Vectorize imageTraces one supplied raster image into a clean SVG; there is no prompt.