photoshop_get_selection_bounds
Read the active pixel selection bounds to verify selection size and position before applying masks, fills, or recipe steps. Returns selection status and bounds without modifying the document.
Instructions
Read the active pixel selection bounds in document pixels (read-only).
Use when: verifying selection exists and its size/position before mask, fill, or recipe steps. Do NOT use when: creating or modifying a selection — use photoshop_select_rectangle or photoshop_select_subject.
Returns: JSON { ok, summary, details: { has_selection, bounds?, context } }. Preconditions: active document. Side effects: none.
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. |