photoshop_expand_selection
Expand an active pixel selection outward by a set 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 | 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. |