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.
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 | Ignored. photoshop_create_document and photoshop_open_image do not target an existing tab. Omit this, or send null or 0. |