draw_on_tile
Draw pixels onto a tile within a tilemap layer's tileset. Automatically creates a new tile when the specified tile index matches the current tile count.
Instructions
Draw pixels onto a tile in a tilemap layer's tileset.
Coordinates are tile-local (0,0 = tile top-left). When tile_index equals the current tile count, a new tile is appended automatically.
Args: filename: Aseprite file to modify layer_name: Tilemap layer whose tileset to edit tile_index: Tile to draw on (1 = first real tile; 0 is reserved for the empty tile and cannot be drawn on) pixels: List of {"x": int, "y": int, "color": "#RRGGBB"}
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_index": "<tile_index>",
"pixels": "<pixels>"
},
"name": "draw_on_tile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pixels | Yes | ||
| filename | Yes | ||
| layer_name | Yes | ||
| tile_index | Yes |