set_tiles
Places tiles into specified grid cells of a single tilemap frame, creating or expanding the cel as needed. Use it to set tile indices by column and row, with later entries overriding duplicates.
Instructions
Place tiles in grid cells (col, row from 0 at the grid origin) of one frame.
The cel is created or grown as needed. Cells must lie on the canvas grid and indices below the tileset's tile_count. A later entry for the same cell wins. A cel linked to other frames gets its own copy first.
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>",
"frame": "<frame>",
"tiles": "<tiles>"
},
"name": "set_tiles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| frame | Yes | 1-based frame number | |
| layer | Yes | Tilemap layer name or 'group/child' path | |
| tiles | Yes | Cells as {col, row, index} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||