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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"nodeId": "<nodeId>",
"nodeName": "<nodeName>"
},
"name": "node_flatten"
}
}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 |