Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Edit prototype
WONDER_MCP_EDIT_PROTOTYPEEdits a prototype's module with small exact replacements (old text → new text); do not rewrite the whole file for a small change. Each edit's old_string must match the current code exactly once (or set replace_all); edits apply in order, and all of them or none are saved. Wonder builds, runs and saves the result like update_prototype, and the canvas plays the new revision. Read the prototype with read_prototype before your first change.
Finish artboard
WONDER_MCP_FINISH_ARTBOARDMarks an artboard you created or changed as finished and returns its design link. It changes nothing on the canvas: your edits were saved as they ran. Call it once per artboard, after its last edit, and never for one you only read.
Move file
WONDER_MCP_MOVE_FILEMoves a file to another workspace, preserving its ID, pages, branches and history. Requires owner or admin access in the source and editor access in the destination. The file goes to the destination root, loses its pin, and uses the destination's access, plan limits and file limit. Get an eligible destination from list_file_move_destinations.
Move file to folder
WONDER_MCP_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. Its id, pages and who can open it stay the same, but a public file makes its folder's name, and the names of the folders above it, visible outside the workspace. It runs on the server and needs no editor, and anyone with Files open sees the move at once. Get a folderId from list_folders, or make the folder with create_folder. Move a file only when the user asks. To send a file to another workspace, use move_file.
Move page
WONDER_MCP_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. It runs on the server and needs no editor, and it never changes the page anyone is looking at. Reorder pages only when the user asked you to.
Prepare feedback upload
WONDER_MCP_PREPARE_FEEDBACK_UPLOADPrepares a one-time upload URL for a file to attach to a submit_feedback report. It accepts images (.png, .jpg, .jpeg, .gif, .webp) up to 20 MB, videos (.mp4, .m4v, .webm, .mov) up to 500 MB, and other files (.pdf, .txt, .log, .json, .csv, .md, .zip) up to 20 MB. SVG and HTML files are refused: paste their source into the report's details instead, or for a long file the part that matters and a description of the rest. Upload the original file's raw bytes to uploadUrl with the returned method right away, since it expires in minutes: curl -sS -X PUT --upload-file "/path/image.png" "<uploadUrl>". The upload needs a shell. The upload answers with the id to pass in the report's attachments. Without a shell, or when the upload is refused: Send the report without the file and describe the file in details. A report or file that carries the user's design, code, names or business needs the user's approval first.
Prepare image upload
WONDER_MCP_PREPARE_IMAGE_UPLOADPrepares a one-time upload URL for a raster image on the user's machine. Upload the original file's raw bytes to uploadUrl with the returned method right away, since it expires in minutes: curl -sS -X PUT --upload-file "/path/image.png" "<uploadUrl>". The upload needs a shell. The upload answers with a cdn.wonder.so imageUrl to use as an image source in update_elements. Without a shell, or when the upload is refused, leave the image's slot or the code component's own fallback and name the file in your reply. A repository .svg file needs no upload: draw its markup inline, or import it as an icon. An image already on the public web needs no upload either.
Rename elements
WONDER_MCP_RENAME_ELEMENTSRenames elements (data-node-label), several per call; renaming an artboard root renames the artboard. Renaming a main component renames the component, a layer inside a main is renamed in every instance, and an instance's own name changes only on that instance. Rename only when the new label says more than the current one; a label that already names the element's role and content stays as it is.
Rename file
WONDER_MCP_RENAME_FILERenames a Wonder file by its fileId. It runs on the server and needs no editor, and everyone who has the file open sees the new name. Rename it only when the user asked you to, or when you created it and its name no longer fits what it holds.
Rename page
WONDER_MCP_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. It runs on the server and needs no editor, and everyone who has the file open sees the new name. Rename it only when the user asked you to, or when you created it and its name no longer fits what it holds.
Set comment thread status
WONDER_MCP_SET_COMMENT_THREAD_STATUSResolves a comment thread or reopens a resolved one. Resolve a thread only when the user asks you to; after working on one, reply with reply_to_comment_thread and leave resolving it to them. Editors resolve any thread, anyone else only the threads they started. For reopening, explicitly pass the matching target's anchorObservation.identity as priorAnchorIdentity. A stale or legacy reopen refusal leaves the thread unchanged.
Update design tokens
WONDER_MCP_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. All or nothing: an entry that fails changes nothing, and the result names it. A token or library icon is one definition with many bound uses: changing it restyles every element bound to it on every page, other designs included. Change the definition only when the user wants the change everywhere, and ask first when a restyle would need a token other designs use. Returns the updated names, the count restyled and the file's 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.
Update icons
WONDER_MCP_UPDATE_ICONSRenames library icons or replaces their keywords. All or nothing: an entry that fails changes nothing, and the result names it. Placed icons keep their binding and markup. Returns the updated names and the catalog. 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. 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 prototype
WONDER_MCP_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. Wonder builds the module and runs it once before saving it. When it does not build, or throws or hangs as it starts, nothing is saved and the result says why. Otherwise it is saved as a new revision and the canvas plays it for everyone in the file. Follow the rules create_prototype and read_prototype return.