tilemap_get_used_cells
Retrieve all used cell coordinates from a specified TileMap layer to inspect occupied tiles and support tile-based processing in Godot.
Instructions
Get all used cell coordinates in a TileMap layer.
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": {
"node_path": "<node_path>"
},
"name": "tilemap_get_used_cells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | TileMap layer index (default: 0) | |
| node_path | Yes | Path to the TileMap node |