render_preview
Render a single sprite frame to a PNG image you can view, with adjustable scale and color, value, or silhouette views, so you can visually inspect pixel art before export.
Instructions
Render a single frame to a PNG and return it as an image you can view.
Use this to *see* your work. frame is 1-based; scale enlarges small sprites
(default 8x) so individual pixels are visible. A large sprite is shown at a lower
scale, so the image is at most 2048 px on its longer side; one already longer than
that is shown at 1x. A frame the sprite does not have is refused, not swapped for
another.
Args:
views: Show the frame several ways side by side, labelled, instead of in colour
alone. Choose from "color"; "value", the frame in greys of each colour's own
lightness, which shows whether the forms read without hue (a figure drawn in
dark colours on a dark outline turns to mud here and nowhere else);
"silhouette", every drawn pixel black on white, which shows whether the shape
reads with no interior and whether its parts have air between them; and
"actual", the frame at 1x, the size a player sees. `["color", "value",
"silhouette"]` is the usual check after a pass. Still one launch.
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": "render_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | Default: 1. | |
| scale | No | Default: 8. | |
| views | No | ||
| filename | Yes |