photoshop_generative_expand
Extends the canvas beyond its edges by a set pixel amount on chosen sides, filling new areas with AI outpainting to enlarge compositions or backgrounds.
Instructions
Extend the canvas beyond its edges using Generative Expand (Firefly): enlarges the canvas by amount_px on the chosen side(s) and fills the new area with Generative Fill (outpainting).
Use when: outpainting, extending background, or expanding composition.
Returns: { ok, summary, details: { direction, prompt, wait } }. Preconditions: active document; generative_fill capability. Side effects: enlarges canvas with generated content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | Describe how to extend the image | extend the background naturally |
| amount_px | No | Pixels added on each expanded side (default: 25% of the longer side) | |
| direction | No | Expand direction (default all) | all |
| 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. |