Skip to main content
Glama

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

NameRequiredDescriptionDefault
nodeIdNoID of the node to flatten. Must be a Frame, Group, or node that supports flattening.
nodeIdsNoArray of Figma node IDs to flatten. Must contain 1 to 100 items.
selectionNoIf true, use the current Figma selection for the operation. If true, nodeId and nodeIds are ignored.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "nodeId": { "description": "ID of the node to flatten. Must be a Frame, Group, or node that supports flattening.", "type": "string" }, "nodeIds": { "description": "Array of Figma node IDs to flatten. Must contain 1 to 100 items.", "items": { "type": "string" }, "maxItems": 100, "minItems": 1, "type": "array" }, "selection": { "description": "If true, use the current Figma selection for the operation. If true, nodeId and nodeIds are ignored.", "type": "boolean" } }, "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amalinakurniasari/conduit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server