photoshop_save_selection
Save the active pixel selection as a new alpha channel, preserving it for later reload or batch workflows. Requires an existing selection.
Instructions
Save the active pixel selection to a new alpha channel.
Use when: preserving a selection for later reload or batch workflows. Do NOT use when: no selection exists — create one first.
Returns: JSON { ok, summary, details: { channel_name, context } }. Preconditions: active document and active pixel selection. Side effects: adds alpha channel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| channel_name | No | Optional name for the new alpha channel (auto-generated if omitted) |