view_sprite
Preview selected sprite frames as a PNG with transparency, optional layer, scale, region, rulers, grid, and onion skin for inspection. Nothing is saved.
Instructions
Look at the sprite: a PNG of the requested frames plus a short description.
Frames are laid out left to right, then down, over a grey checkerboard that marks transparency. Without scale, the largest that keeps the image within 512 px is used. The image never exceeds 2048 px per side: a larger scale is reduced, and when even scale 1 is too big every n-th pixel is shown; the text says so. Up to 64 frames per call. Without layer the visible layers are composited; with layer only that layer's own pixels are shown. onion_skin shows each frame's previous frames beneath it, the nearest at 50% opacity and each older one at half the one after. Nothing is saved. Not available in batch.
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>"
},
"name": "view_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | No | Lines between pixels, from scale 4 | |
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| layer | No | Layer name or 'group/child' path for that layer's own pixels; omit for the visible layers composited | |
| scale | No | Screen pixels per sprite pixel | |
| frames | No | Frames: a number, "1-4", "1-4,7" or "all" (1-based) | |
| region | No | Show only this canvas rectangle | |
| rulers | No | Canvas coordinates along the edges | |
| onion_skin | No | Previous frames to show faded beneath each frame |