render_preview
Render a nearest-neighbor PNG preview of one or more Aseprite frames directly in the response, with optional pixel grid, onion skin, layer isolation, and staged-versus-disk comparison.
Instructions
Render a crisp nearest-neighbor PNG preview of one or more frames directly as an image in the response (supports pixel grid, onion skin, single layer, and staged vs disk comparison).
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": {
"file": "<file>"
},
"name": "render_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Sprite file path. | |
| grid | No | Draw pixel grid overlay when scale >= 4. | |
| frame | No | Single frame to render (default 1 when frames omitted). | |
| layer | No | Render only a single layer or group (name or Group/Layer path). | |
| onion | No | Overlay previous frame silhouette in translucent red. | |
| scale | No | Integer zoom factor (auto-fitted if omitted). | |
| frames | No | Multiple frames: 'all', 'auto' (all if <=8 else 1), '1-4', or [1,2,3]. | |
| region | No | Optional crop region { x, y, width, height } to zoom into a detail. | |
| source | No | 'auto' (default), 'live', 'staged', or 'disk'. | |
| columns | No | Grid columns when rendering multiple frames. | |
| maxSize | No | Target auto-scale max dimension in px (default 512). | |
| background | No | 'checker' (default), 'transparent', or hex color like '#222222'. |