photoshop_generative_fill
Fill an active selection with AI-generated content from a text prompt, replacing or adding objects inside the selected area using Adobe Firefly. Requires Photoshop 24+ and an active selection.
Instructions
Fill the current selection using Adobe Generative Fill (Firefly) with a text prompt.
Use when: adding or replacing content inside a selection with generative AI. Do NOT use when: no selection exists — create one first or use photoshop_select_subject. Do NOT use when: Photoshop version lacks generative_fill — check photoshop_get_capabilities.
Returns: { ok, summary, details: { action_id, prompt, wait } }. Preconditions: PS 24+ with generative credits; active pixel selection. Side effects: modifies pixels in selection; may consume Adobe generative credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Describe what to generate in the selection | |
| 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. |