Draw a character grid
texture_drawDraw small pixel-art images from rows of characters and a color palette; each character maps to scale-sized pixels, and characters missing from the palette are skipped.
Instructions
Draws a small picture from rows of characters, for example rows ["..ab..", ".abba."] with palette {"a": "#ff0000", "b": "#000000"}. Characters not in the palette are skipped. Each character covers scale x scale pixels.
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": {
"rows": "<rows>",
"palette": "<palette>"
},
"name": "texture_draw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| rows | Yes | ||
| scale | No | ||
| palette | Yes |