AI Tilemap
Teaches RQL Godot TileMapLayer — used-cell rows and count, validated SetCell (source id, atlas coords, alternative), EraseCell and Clear; assign the TileSet as a property.
At a glance
What the agent can do with it
Adds no MCP tools: it contributes an RQL module with adapters for TileMapLayer. That powers 2 capabilities the agent reaches through rql-query / rql-mutate. How RQL works →
- Paint cells
Set a cell from a tileset source, atlas coordinates and alternative (validated), erase a cell, or clear the layer; assign the TileSet as a property.
nodes | where name == "Layer" | call SetCell(1, 0, 0, 2, 1) - Read cells
List a TileMapLayer’s used cells (position, source id, atlas coordinates, alternative) and their count.
nodes | where name == "Layer" | get usedCells | select x y sourceId atlasX atlasY alternative
Install
Requires the base plugin godot_mcp. Then build the project (godot-cli build <GodotProject>); the RQL module loads with the package — the agent sees it in rql-schema.
godot-cli install-extension com.IvanMurzak.Godot.MCP.Tilemap <GodotProject>When to ask the AI for it
Ask for 2D level layout in Godot — paint a ground layer, place tiles, or clear a TileMapLayer.
Example prompts
Copy-pasteable first requests. Start with one, verify it in the editor, then build up.
Create a TileMapLayer, assign res://ground.tres as its tileset and paint atlas tile (2, 1) from source 0 at cell (3, 5).List every painted cell in the TileMapLayer.