photoshop_recipe_remove_distraction
Removes a selected object or distraction from an image using generative AI when available, otherwise content-aware fill, in a single undoable step.
Instructions
One-shot distraction removal: generative AI remove when available, else content-aware fill. Wrapped in a single undoable history step.
Users often say: remove that person, erase distraction, content aware remove, clone out object.
Use when: the user has selected the object or region to remove. Do NOT use when: no selection exists — use photoshop_select_rectangle or photoshop_select_subject first.
Returns: { ok, summary, undo_history_states_consumed, details }. Preconditions: active document with an active pixel selection. Side effects: fills/removes selected pixels; clears selection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feather_px | No | Edge feather in pixels before remove (0-20, default 0) | |
| 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. | |
| use_generative | No | Prefer generative remove when Photoshop supports it (default true when capable) |