Open File
photopea_open_fileOpen an existing image from a URL or local path in Photopea as a new active document, supporting PSD, PNG, JPG, WebP, SVG, and common formats.
Instructions
Open an existing image file in Photopea as a new document. Supports PSD, PNG, JPG, WebP, SVG, and other common formats. The opened file becomes the active document. Use create_document instead to start with a blank canvas.
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": {
"source": "<source>"
},
"name": "photopea_open_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | URL or absolute local file path of the image to open (e.g. /Users/me/photo.psd or https://example.com/image.png) |