crop_sprite
Crop a sprite to a set rectangle or current selection, or trim empty borders automatically to remove unused canvas edges.
Instructions
Crops the sprite to a rectangle, to the selection (mode='selection'), or trims empty borders (mode='auto').
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": "crop_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| rect | No | ||
| save | No | Batch mode: write changes back to the sprite file (default true) | |
| byGrid | 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 |