generate_terrain_pattern
Generate procedural terrain layouts for RPG encounters using predefined patterns like mazes, canyons, and arenas in a single call.
Instructions
Generate terrain using a pattern template. ONE CALL generates entire layout.
PATTERNS:
maze: Full procedural maze (corridors & walls) - USE THIS FOR MAZES
maze_rooms: Maze with open chambers/rooms connected by corridors
river_valley: Cliff walls on east/west with river in center
canyon: Parallel walls east-west with pass between
arena: Circular wall enclosing fighting area
mountain_pass: Narrowing corridor toward center
MAZE EXAMPLE (100x100 in ONE call): { "encounterId": "enc-1", "pattern": "maze", "origin": { "x": 0, "y": 0 }, "width": 100, "height": 100, "seed": "maze-runner-001" }
MAZE WITH ROOMS: { "pattern": "maze_rooms", "width": 100, "height": 100, "roomCount": 8 }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encounterId | Yes | The ID of the encounter | |
| pattern | Yes | Terrain pattern to generate | |
| origin | No | Top-left corner of the pattern | |
| width | No | Width of the pattern area | |
| height | No | Height of the pattern area | |
| seed | No | Seed for reproducible generation | |
| corridorWidth | No | Width of corridors (maze patterns only) | |
| roomCount | No | Number of rooms (maze_rooms pattern only) | |
| sessionId | No |