Flatten Node
node_flattenFlatten a Figma node and its children into a single vector, discarding the original layer structure.
Instructions
Flatten a node and its children into a single vector. Lossy — original structure is not recoverable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to flatten | |
| nodeName | Yes | The node's current exact name, passed back verbatim from `node_info`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ID of the flattened node | |
| name | No | Name of the flattened node | |
| type | No | Type of the flattened node (usually VECTOR) | |
| error | No | ||
| parentId | No | ID of the container the flattened node was placed in — the source node's original parent, so D11 containment is confirmable from this response without a follow-up node_info |