tilemap
Convert a 2D grid of tile IDs into a pixel-art map, rendering each ID as a 16x16 tile with adjustable scale and palette.
Instructions
Build a tilemap from a 2D grid of tile IDs. Each cell becomes a 16x16 tile.
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": {
"grid": "<grid>"
},
"name": "tilemap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | Yes | 2D array of tile IDs (e.g. [["grass","grass","water"],["grass","door","grass"]]) | |
| scale | No | Scale factor (default 4) | |
| palette | No | Palette ID (default "pico8") |