canvas_size
Grow or shrink an Aseprite sprite canvas without scaling pixels: add or cut margins, or set new width and height with an anchor.
Instructions
Grows or shrinks the canvas without scaling pixels: either margins (left/top/right/bottom, negative values cut) or a new width/height with an anchor.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "canvas_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| left | No | ||
| save | No | Batch mode: write changes back to the sprite file (default true) | |
| right | No | ||
| width | No | ||
| anchor | No | ||
| bottom | No | ||
| height | No | ||
| sprite | No | File path, open tab title, or sprite id. Defaults to the active sprite (live). Batch mode needs a file path. | |
| backend | No | auto (default): live Aseprite if connected, else headless batch | |
| trimOutside | No |