resize_canvas
Change the canvas size without modifying layer pixels. Set new width and height, with optional offsets to reposition the image.
Instructions
Resize the canvas without scaling layer pixels.
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": {
"image_id": "<image_id>",
"width": "<width>",
"height": "<height>"
},
"name": "resize_canvas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| height | Yes | ||
| image_id | Yes | ||
| offset_x | No | ||
| offset_y | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||