create_tilemap_layer
Creates a tilemap layer in an Aseprite file, sets the sprite grid to tile dimensions, and adds a new tileset for tile-based pixel art.
Instructions
Create a tilemap layer with its own tileset.
Sets the sprite grid to the tile size and adds a tilemap layer. Tile index 0 is always the empty tile; add real tiles with draw_on_tile (which creates tiles on demand).
Args: filename: Aseprite file to modify layer_name: Name for the new tilemap layer tile_width: Tile width in pixels tile_height: Tile height in 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": {
"filename": "<filename>",
"layer_name": "<layer_name>",
"tile_width": "<tile_width>",
"tile_height": "<tile_height>"
},
"name": "create_tilemap_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| layer_name | Yes | ||
| tile_width | Yes | ||
| tile_height | Yes |