tilemap_get_cell
Retrieve tile data from a TileMap or TileMapLayer node at specified coordinates. Returns source ID, atlas coordinates, alternative tile, and whether the cell is empty.
Instructions
Get cell data from a TileMap or TileMapLayer node.
Category: TileMap
Args: project_path: Path to the Godot project directory scene_path: Path to the scene file (relative to project) node_path: Path to the TileMap or TileMapLayer node (e.g., "root/TileMap") x: X coordinate of the cell y: Y coordinate of the cell layer: Layer index for TileMap nodes (ignored for TileMapLayer, default: 0)
Returns: JSON containing cell data: source_id, atlas_coords, alternative_tile, is_empty
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scene_path | Yes | ||
| node_path | Yes | ||
| x | Yes | ||
| y | Yes | ||
| layer | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |