photoshop_recipe_remove_distraction
Remove selected distractions from a Photoshop document using generative AI or content-aware fill, all in one 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 | 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. | |
| use_generative | No | Prefer generative remove when Photoshop supports it (default true when capable) |