flatten_node
Convert Figma nodes, groups, or selections into single vector layers by merging child shapes and vectors. Supports batch processing of up to 100 nodes or current selections.
Instructions
Flatten one or more nodes in Figma, or the current selection, merging all child vector layers and shapes into a single vector layer.
Returns:
content: Array of objects. Each object contains a type: "text" and a text field with the results for each node.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
nodeId | No | ID of the node to flatten. Must be a Frame, Group, or node that supports flattening. | |
nodeIds | No | Array of Figma node IDs to flatten. Must contain 1 to 100 items. | |
selection | No | If true, use the current Figma selection for the operation. If true, nodeId and nodeIds are ignored. |