draw_tile
Paint exact pixel colors into a single tileset tile, updating every tilemap placement that shares the tile; append a new tile when needed.
Instructions
Set pixels of one tile in the layer's tileset; x and y are inside the tile.
Pixels get exactly the given colour (no blending; a later entry wins). Every placement of the tile changes, in every tilemap layer sharing the tileset. Tile 0 is the empty tile and cannot be painted; passing tile_count appends a new tile.
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": {
"path": "<path>",
"layer": "<layer>",
"tile_index": "<tile_index>",
"pixels": "<pixels>"
},
"name": "draw_tile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| layer | Yes | Tilemap layer name or 'group/child' path | |
| pixels | Yes | Pixels as {x, y, color} in the tile | |
| tile_index | Yes | Tile to paint; the tileset's tile count adds a new tile |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||