Resize Document
photopea_resize_documentResizes the active document canvas to new pixel dimensions and proportionally resamples all layer content to fit. This destructive edit can be reverted with undo.
Instructions
Resize the active document canvas to new pixel dimensions, resampling all layer content to fit. This is a destructive operation — all layers are scaled proportionally. Use undo to revert if needed.
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_resize_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | New document width in pixels | |
| height | Yes | New document height in pixels |