crop_sprite
Crops the canvas to a specified rectangle across all layers and frames, keeping only the chosen area. Use it to trim sprite bounds consistently.
Instructions
Crop the canvas to rect in every layer and frame; rect must overlap the canvas.
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": {
"path": "<path>",
"rect": "<rect>"
},
"name": "crop_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| rect | Yes | Area to keep, in canvas pixels |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||