export_tileset
Exports a tilemap layer's tileset as a horizontal PNG strip for game engines, optionally writing an Aseprite JSON atlas when a data path is provided.
Instructions
Export a tilemap layer's tileset as a horizontal PNG strip (plus an
Aseprite JSON atlas if data_path is given). The strip includes tile 0
(the empty tile) first, so tile index i sits at x = i * tile_width. Writes
files but does not modify the sprite (it does make the layer active).
Headless: pass file.
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": {
"layer": "<layer>",
"output_path": "<output_path>"
},
"name": "export_tileset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| layer | Yes | ||
| data_path | No | ||
| output_path | Yes |