create_instance
Instantiate a Figma component by providing a local component ID or a published component key. Optionally specify name, position, and parent to control the new instance's properties.
Instructions
Instantiate a component. Provide componentId (a local COMPONENT node) or componentKey (a published component imported via the API). Optionally name / position / parent the instance. Returns { ok, nodeId, name, type } for the new instance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | No | Optional name for the new instance | |
| parentId | No | Container node id; omit for current page | |
| componentId | No | Local component node id to instantiate | |
| componentKey | No | Published component key to instantiate |