penpot_add_component_instance
Places an instance of a component on a page at given coordinates, duplicating its shape hierarchy with new IDs and maintaining component link. For library components, include the library file ID.
Instructions
Place a copy (instance) of an existing component at a new position on a page. Clones the component's full main-instance shape tree with fresh ids, linked back to the main via shape-ref so Penpot recognizes it as a component copy. For components from a connected shared-library file, pass the library file's id as libraryFileId (returned by penpot_list_components with includeLibraries: true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| fileId | Yes | ||
| pageId | Yes | ||
| frameId | No | 00000000-0000-0000-0000-000000000000 | |
| parentId | No | 00000000-0000-0000-0000-000000000000 | |
| componentId | Yes | ||
| libraryFileId | No | The id of the shared-library file that owns this component. Returned as libraryFileId by penpot_list_components when includeLibraries is true. Omit when the component belongs to the current file. |