crop_sprite
Crop an Aseprite sprite canvas to a specified rectangle using x, y, width, and height; a larger rectangle expands the canvas and fills new background areas.
Instructions
Crop the canvas to the rectangle (x, y, width, height).
The resulting canvas is subject to the same dimension/area caps as `create_sprite`
(a "crop" to a larger rectangle grows the canvas). Where it grows a Background, the new
area 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>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>"
},
"name": "crop_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| filename | Yes |