photoshop_generative_expand
Extend the canvas beyond its edges with generative AI. Specify a direction and prompt to expand backgrounds or compositions when the existing frame is too small.
Instructions
Extend the canvas beyond its edges using Generative Expand (Firefly).
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 |
| 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. |