photoshop_expand_selection
Expands the active pixel selection outward by a specified pixel amount to grow tight subject selections or add padding before feathering or filling.
Instructions
Expand the active pixel selection outward by a pixel amount.
Use when: growing a tight subject selection or adding padding before feather/fill. Do NOT use when: no selection exists — create one first.
Returns: JSON { ok, summary, details: { pixels, bounds?, context } }. Preconditions: active document and active pixel selection. Side effects: modifies selection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pixels | Yes | Pixels to expand by (minimum 1) | |
| 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. |