create_component_instance
Create an instance of a local or published library component in Figma at specified coordinates, optionally within a parent node.
Instructions
Create an instance of a component in Figma. For LOCAL components (from get_local_components), use componentId with the id field. For published LIBRARY components, use componentKey with the publishedKey field.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| componentId | No | ID of a local component (use the id field from get_local_components result). Use this for unpublished/local components. | |
| componentKey | No | Key of a published library component to instantiate (use the publishedKey field from get_local_components result). Only works for published components. | |
| x | Yes | X position | |
| y | Yes | Y position | |
| parentId | No | Optional parent node ID to place the instance into |