Overview
Creates a new instance of an existing component at the specified position. The component must exist in the current document.Parameters
Key of the component to instantiate. Get this from get_local_components
X position where the instance will be created
Y position where the instance will be created
Response
Returns information about the created instance:Unique node identifier for the created instance
Name of the instance (inherited from the component)
X position of the instance
Y position of the instance
Key of the main component this instance references
Usage Example
Common Use Cases
Rapid Prototyping
Quickly populate designs with component instances
Batch Creation
Create multiple instances programmatically for layouts
Design Automation
Automate repetitive instance placement tasks
Template Generation
Generate templated screens with consistent components
Workflow
Get components
Use get_local_components to find available components
Customize instance (optional)
Use get_instance_overrides and set_instance_overrides to apply customizations
Error Handling
Notes
- The created instance inherits all properties from the main component
- Position is absolute on the current page
- The instance can be modified after creation using other tools
- Component must be from the current document (library components require different handling)
Related Tools
- get_local_components - Get component keys needed for instance creation
- get_instance_overrides - Extract overrides from an instance
- set_instance_overrides - Apply overrides to instances
- clone_node - Alternative way to duplicate existing instances