view_sprite
Render sprite frames as scaled images over a checkerboard with pixel grid and coordinate rulers, so drawing mistakes can be spotted and fixed at exact x/y without exporting PNGs.
Instructions
Look at the sprite: returns an image of its frames that you can see directly.
Use this after every drawing pass instead of exporting a PNG and opening it. Each frame is scaled up with nearest-neighbour, shown over a light checkerboard (transparent pixels), with a pixel grid (darker every 8 px) and rulers giving sprite coordinates, so a mistake you spot can be fixed at exact x/y right away. Frames are laid out side by side, at most four per row, each titled with its number and duration.
Args: filename: Aseprite file to look at frames: Frames to show, 1-based: "3", "1-4" or "1,3,6-8", at most 16; "" shows all frames (the first 16 of longer sprites) layer_name: Show only this layer, by name or "group/layer" path (default: all visible layers) scale: Zoom factor, 1-64; 0 picks one (each frame ~384 px, at least 6x for sprites up to 128 px) and a layout that fits without shrinking grid: Draw the pixel grid (only when the scale is 4 or more) rulers: Label x across the top and y down the left output_filename: Optional path to also save the image as PNG region: Zoom into part of the sprite, "x,y,w,h" in sprite pixels, e.g. "40,20,16,16" for a hand; rulers keep sprite coordinates and scale 0 zooms in to fill the view
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": "view_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | No | ||
| scale | No | ||
| frames | No | ||
| region | No | ||
| rulers | No | ||
| filename | Yes | ||
| layer_name | No | ||
| output_filename | No |