save_design_export
Write a full Figma node or selection export to JSON with layout, styles, components, assets, and previews for build scripts.
Instructions
Write a full design export of a node (default: the selection) to a JSON file: the node tree with every layout, paint, text, variable, style, component and interaction detail, icon SVGs, renders of masked or rotated groups, image fills and a 2x preview. Mapped components carry their code component. Use it to hand a frame to a build script.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute .json path to write (default: the data folder). | |
| nodeId | No | The ID of the node, eg. "123:456" or "123-456" (instance ids like "I1:2;3:4" work too). Omit it to use the current selection in Figma. | |
| fileKey | No | The key of the Figma file. Accepted for compatibility; the file open in Figma Desktop is always used. |