photoshop_save_selection
Saves the active pixel selection to a new alpha channel, preserving it for later reload or batch workflows.
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.
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_save_selection"
}
}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) |