photoshop_open_image
Open an image file as a new Photoshop document when a user provides a file path or no document is open. Returns document ID, name, width, and height.
Instructions
Open an image file as a new Photoshop document.
Use when: user provides a file path to edit or no document is open yet. Do NOT use when: adding to an existing composite — use photoshop_place_image.
Returns: document id, name, width, height. Preconditions: file must exist on disk. Side effects: opens document as active.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Full path to the image file | |
| document_id | No | Ignored. photoshop_create_document and photoshop_open_image do not target an existing tab. Omit this, or send null or 0. |