Before executing specific methods, read Craft scenario commands and parameters, and execute according to the object selection, session, input replacement, and result checking described therein.
Connection and execution
First check the current MCP tool list and editor_status. If there is create_node、run_command、inspect_document , use the actual tool JSON schema; do not guess parameters. Use list_commands to find the commands and parameters required for this scenario, then execute.
MCP operations on the enhanced Web must occur on the same page that is 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, do not pretend to have edited or saved. The standalone native figcraft-cli mcp is another session; switching must be explicitly communicated. When the CLI is available, use figcraft-cli commands --json to check commands; do not install missing tools yourself.
Reference:FigCraft v0.6.0 MCP、CLI. Commands are subject to the currently loaded version.
Work steps
- Check page dimensions, component states, naming, and image copyright sources, and confirm the formats and scales required by the development side.
- Use list_commands to query inspect.properties, inspect.assets, inspect.code; obtain the actual layout, text, colors, and component properties according to the current schema.
- Select the frames and components to be developed, and generate code references for the target platforms respectively; note that this is reference code exported from the design and has not been compiled or run in an application project.
- Export icon SVGs, raster images PNG/WebP, and page previews; read the actual files and check transparent backgrounds, dimensions, scales, and naming, avoiding using screenshots as editable source files.
- Save and reopen the .figcraft; deliver the project, asset list, component state descriptions, and code references. Report only the artifacts actually generated; if frontend integration was not performed, this must be stated explicitly.