Duplicate Layer
photopea_duplicate_layerCreate a copy of any layer in your active Photopea document. The duplicate appears above the original as the new active layer, with optional renaming to distinguish it from the source.
Instructions
Create a copy of a layer in the active document. The duplicate becomes the active layer and is placed above the original. Use newName to distinguish the copy from the original.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Layer name (string) or index (number) | |
| newName | No | Display name for the duplicated layer (defaults to 'original name copy') |