game_terrain
Create and modify terrain meshes from heightmap data. Adjust heights, paint colors, and query elevations.
Instructions
Create/modify terrain meshes from heightmap data
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": {
"action": "<action>"
},
"name": "game_terrain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position (for modify/get_height/paint) | |
| z | No | Z position (for modify/get_height/paint) | |
| name | No | Node name | |
| color | No | Vertex color {r,g,b,a} (for paint) | |
| depth | No | Terrain depth in vertices | |
| width | No | Terrain width in vertices | |
| action | Yes | Action: create, modify, get_height, paint | |
| radius | No | Brush radius (for modify/paint) | |
| nodePath | No | Terrain node path | |
| maxHeight | No | Maximum terrain height | |
| heightData | No | Array of float height values (for create) | |
| parentPath | No | Parent node path | |
| heightDelta | No | Height change amount (for modify) |