game_gridmap
Set, get, clear, and query used cells on a Godot GridMap node to manage tile placement and grid occupancy.
Instructions
GridMap set/get/clear cells and query used cells
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_gridmap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Cell X coordinate | |
| y | No | Cell Y coordinate | |
| z | No | Cell Z coordinate | |
| item | No | MeshLibrary item index | |
| action | Yes | Action: set_cell, get_cell, clear, get_used | |
| nodePath | Yes | Path to GridMap node | |
| orientation | No | Cell orientation index |