get_bounds
Measure the bounding box of non-transparent pixels per frame to check animation alignment, ground contact, and empty frames.
Instructions
Report where the drawn pixels are in each frame: their bounding box.
Use while animating to measure instead of eyeballing: that rise and fall frames mirror each other, that the feet stay on the ground line, that a character never leaves the canvas.
Args: filename: Aseprite file to read layer_name: Measure only this layer (or group); "" measures all visible layers together frames: Frames to measure, 1-based: "3", "1-4" or "1,3,6-8"; "" measures every frame
Returns: JSON with one entry per frame: x, y, width, height of the non-transparent pixels, or "empty": true for a blank frame.
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>"
},
"name": "get_bounds"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frames | No | ||
| filename | Yes | ||
| layer_name | No |