photoshop_open_image
Opens an image file from disk as a new active Photoshop document, returning its ID, name, and dimensions—use when you have a file path to edit or no document is open.
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.
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": {
"filePath": "<filePath>"
},
"name": "photoshop_open_image"
}
}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. |