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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "photoshop_duplicate_layer"
}
}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. |