photoshop_generative_fill
Fill a Photoshop selection with AI-generated content via Adobe Firefly using a text prompt. Requires an active pixel selection and Photoshop generative credits.
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 | 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. |