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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>"
},
"name": "photoshop_duplicate_layer"
}
}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. |