photoshop_select_subject
Selects the subject on the active Photoshop layer, creating a pixel selection for masking, filling, or further edits. Use it to isolate a person or object; it does not create a mask.
Instructions
Run Select Subject on the active layer (creates a pixel selection only, no mask).
Users often say: cut out, isolate subject, select person, select object.
Use when: you need a subject selection for masking, fill, or further edits. Do NOT use when: full background removal with mask — use photoshop_recipe_remove_background.
Returns: JSON { ok, summary, details: { selected, method } }. Preconditions: PS ≥ 23, active document, non-Background active layer with a recognizable subject. Side effects: replaces current selection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| sample_all_layers | No | Sample all layers for autoCutout fallback (default false) |