create_instance
Create a new instance of a Figma component. Specify a local component ID or published component key, with optional name, position, and parent.
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 |