photoshop_open_image
Opens an image file as a new Photoshop document to begin editing, returning 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 | 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. |