export_tileset
Slices a pixel-art image into fixed tiles, deduplicates identical and X/Y/XY mirrored tiles, then writes a compact Tileset PNG and Tilemap JSON for reuse in game maps.
Instructions
Slices a pixel-art (or newly pixelized) image into fixed tiles (e.g. 8x8 or 16x16), deduplicates identical & X/Y/XY mirrored tiles, and writes a compact Tileset PNG + Tilemap JSON.
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": {
"input_path": "<input_path>",
"output_png": "<output_png>"
},
"name": "export_tileset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | ||
| palette | No | endesga-32 | |
| input_path | Yes | ||
| output_png | Yes | ||
| tile_width | No | ||
| allow_flips | No | ||
| tile_height | No | ||
| pixelize_first | No | ||
| output_map_json | No |