autocrop_sprite
Trims transparent borders and shrinks the canvas to the union of visible content across all layers and frames, returning old and new size; errors if the sprite is fully transparent.
Instructions
Trim transparent borders: shrink the canvas to the union of visible
content across all layers and frames (Sprite > Trim). Errors if the
sprite is fully transparent. Returns the old and new size. One undo
step. Headless: pass file.
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": "autocrop_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No |