photoshop_duplicate_layer
Creates a copy of the active Photoshop layer, making the duplicate active and returning its name and layer ID.
Instructions
Duplicate the active layer. The duplicate becomes the active layer; returns its name and, when available, its layer id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newName | No | Name for the duplicated layer (optional) | |
| document_id | Yes | Photoshop document id from photoshop_get_state / photoshop_list_documents. Send null or 0 to use the active document. A positive number activates that document before the tool runs. When no document is open, a stale id does not block the call. |