photoshop_duplicate_layer
Duplicates the active Photoshop layer, optionally naming the copy and targeting a specific document. Returns the new layer's name and ID so AI agents can continue editing the duplicate.
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 | No | Optional Photoshop document id from photoshop_get_state / photoshop_list_documents. When set, the tool activates that document before running so a UI tab switch cannot retarget the edit. |