Before executing specific methods, read Craft scenario commands and parameters, and execute according to the object selection, session, input replacement, and result checks described therein.
Connection and execution
First check the current MCP tool list and editor_status. When create_node、run_command、inspect_document is available, use the actual tool JSON schema; do not guess parameters. Use list_commands to find the commands and parameters needed for this scenario, then execute.
MCP operations that enhance Web must occur on the same page that is already open and ready. The official original Web 0.6.0 only has an interactive screen; file services are not yet implemented; when these MCP tools are absent, you must not pretend to have edited or saved. A separate native figcraft-cli mcp is another session; switching must be clearly communicated. When the CLI is available, use figcraft-cli commands --json to check commands; do not install missing tools on your own.
References:FigCraft v0.6.0 MCP、CLI. Commands are subject to the currently loaded version.
Work steps
- List the main tasks, required fields, navigation entries, and empty states from the user requirements; mark unknown copy as placeholders and avoid inventing business metrics.
- Create the corresponding frames of 390×884, 768×1024, and 1280×1024; start with the current target platform, and fill in the other platforms as required. Read the ID returned by create_node; do not infer subsequent IDs.
- Build the navigation, title, main content, and primary actions with solid color blocks and text; set the font hierarchy, whitespace, and boundaries via set_properties. Check the reading order first, then add decoration.
- Use inspect_document to check the hierarchy, parent frame, and dimensions; use screenshot to verify overflow, occlusion, and button recognizability. Re-check the affected areas after adjustments.
- Save to a new .figcraft path via save_file, reopen and compare the frames and nodes; export a PNG for each page, and deliver a list of unresolved business questions.