game_tilemap
Get, set, or erase cells in a TileMapLayer node to edit game tilemaps, and retrieve used cells for efficient level design.
Instructions
Get or set cells in a TileMapLayer node
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": {
"nodePath": "<nodePath>",
"action": "<action>"
},
"name": "game_tilemap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Cell X coordinate (for get_cell) | |
| y | No | Cell Y coordinate (for get_cell) | |
| cells | No | Array of cell objects for set_cells/erase_cells | |
| action | Yes | Action: set_cells, get_cell, erase_cells, get_used_cells | |
| nodePath | Yes | Path to TileMapLayer node | |
| sourceId | No | Filter by source_id (for get_used_cells) |