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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>"
},
"name": "photoshop_generative_expand"
}
}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. |