Tilesets
tilesetManage Aseprite tilemap layers: list or create layers, retrieve tile images and indices, stamp tiles by grid coordinate, pack mockups into reusable tile collections, and export to Tiled, Godot, JSON.
Instructions
Work with Aseprite tilemap layers. Ops: 'list', 'create_layer', 'get' (tiles as a packed image plus indices), 'stamp' (place tiles by grid coordinate), 'pack' (deduplicate a hand-painted mockup into a tileset plus a reconstructing tilemap), 'export' (Tiled .tsj, Godot .tres or JSON, with the packed PNG beside it). Requires an extension build advertising the 'tileset' feature — check preflight first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| name | No | ||
| path | No | Output path for 'export' and 'get'. | |
| frame | No | 1-based frame number. Omit to use the active frame. | |
| layer | No | Layer name. Omit to use the active layer. | |
| tiles | No | For 'stamp'. x/y are tile-grid cells, not pixels. | |
| format | No | tiled | |
| layout | No | Autotile layout for 'export'. | grid |
| sprite | No | Sprite filename or id. Omit to use the sprite Aseprite has focused. | |
| tileWidth | No | ||
| tolerance | No | For 'pack': treat near-identical tiles as one. | |
| tileHeight | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| files | No | ||
| layer | No | ||
| sprite | Yes | ||
| tilesets | No | ||
| tileCount | No |