photoshop_release_clipping_mask
Remove the clipping mask from the active or named layer to make it independent again. Use when a clipped layer should no longer be grouped; fails if the layer is not clipped.
Instructions
Release (remove) the clipping mask from the active layer (or a named layer).
Users often say: unclip, release clipping mask, remove clipping mask.
Use when: a clipped layer should become independent again. Do NOT use when: the layer is not clipped — returns not_clipping error.
Returns: JSON { ok, summary, details: { layer_name, is_clipping: false } }. Preconditions: active document; target layer must currently be a clipping mask (grouped). Side effects: sets layer.grouped = false; one history step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_name | No | Optional exact layer name (recursive search). Default: active layer. | |
| 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. |