draw_on_tile
Set pixels on one tile in a tilemap layer's tileset, updating every placed instance at once. Pass the layer, tile index, and {x, y, color} pixels; overflow pixels are skipped and edits commit as one undo step.
Instructions
Set pixels on one tile of a tilemap layer's tileset. pixels is a list
of {x, y, color} objects (color #rrggbb or #rrggbbaa; x/y relative to the
tile's top-left). Pixels outside the tile are skipped and counted. Every
placed instance of the tile updates. One undo step. 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>",
"tile_index": "<tile_index>",
"pixels": "<pixels>"
},
"name": "draw_on_tile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| layer | Yes | ||
| pixels | Yes | ||
| tile_index | Yes |