photoshop_create_layer
Create a new empty layer above the active layer for painting, fills, or stacking content. Returns created layer name and context; requires an active document.
Instructions
Create a new empty layer above the active layer.
Use when: user needs a blank layer for painting, fills, or stacking content. Do NOT use when: adding text — use photoshop_create_text_layer.
Returns: created layer name and context. Preconditions: active document. Side effects: adds layer to history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the new 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. |