Pixel sprite to PNG and editor link
pixel_spriteTurn pixel art written as text into a PNG, plus a link that opens it in the GameShipKit Pixel Art Editor so the user can keep editing it by hand. Each string in rows is one line of pixels, each character is one pixel and "." is transparent. colors maps each character to a hex colour. Use frames instead of rows for a short animation. Up to 64×64 pixels, 62 colours and 16 frames. Keep an outline and 3 to 16 colours for clean pixel art.
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": {
"colors": "<colors>"
},
"name": "pixel_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Playback speed for frames. | |
| name | No | Short file name, e.g. "sword". | |
| rows | No | One string per line of pixels, top to bottom, all the same length, e.g. ["..kk..", ".krrk.", "krrrrk"]. | |
| scale | No | How many screen pixels per art pixel in the PNG. | |
| colors | Yes | Character to colour, e.g. {"k": "#1a1c2c", "r": "#b13e53"}. "." is always transparent. | |
| frames | No | For an animation: one rows list per frame, all the same size. Use instead of rows. |