Create Document
photopea_create_documentStart a new design project by creating a blank document with custom width, height, resolution, color mode, and background fill. Use this as the first step for image editing or graphic design workflows.
Instructions
Create a new blank document and make it the active document. This is typically the first step in a workflow. The document opens with a Background layer. Use open_file instead to edit an existing image.
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": {
"width": "<width>",
"height": "<height>"
},
"name": "photopea_create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Color mode (use RGB for most workflows) | RGB |
| name | No | Document name shown in the title bar | Untitled |
| width | Yes | Document width in pixels (e.g. 1920 for full HD) | |
| height | Yes | Document height in pixels (e.g. 1080 for full HD) | |
| fillColor | No | Background fill color as hex (e.g. #ffffff for white, #000000 for black). Defaults to white if omitted. | |
| resolution | No | Resolution in DPI (72 for screen, 300 for print) |