photoshop_generative_expand
Extend a Photoshop document's canvas beyond its edges using AI-generated content for outpainting, background extension, or composition expansion.
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 | 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. |