resize_canvas
Resize the canvas without scaling artwork by adding or trimming space, with top-left or center anchoring for existing content.
Instructions
Resize the canvas WITHOUT scaling the artwork (adds or trims space).
anchor controls where existing content sits in the new canvas:
"top_left" (default) or "center". The new canvas is subject to the same
dimension/area caps as `create_sprite`. New area is transparent, except on a
Background, where it is black, or the transparent palette index on an indexed sprite.
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": {
"filename": "<filename>",
"width": "<width>",
"height": "<height>"
},
"name": "resize_canvas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | ||
| anchor | No | Default: "top_left". | top_left |
| height | Yes | ||
| filename | Yes |