Generate a maze
generate_mazeGenerate printable single-solution mazes in shapes such as rectangle, circle, heart, star, or country outlines as SVG, ASCII, or JSON. Reuse a seed to reproduce the same maze or show the answer key.
Instructions
Generate a printable maze as SVG, ASCII text or JSON. Shapes: rectangle, circle, heart, star, diamond, triangle, hexagon, or the outline of any country (pass country). Every maze has exactly one solution; set show_solution for an answer key. The same seed always gives the same maze.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_maze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Reuse a seed to regenerate the same maze. | |
| size | No | Cells along the longer side. 10-15 suits young children, 20-30 older kids, 40+ adults. | |
| shape | No | Maze outline. Use "country" together with the `country` field. | rectangle |
| width | No | Rectangle only: cells across. Overrides size. | |
| format | No | svg for printing, ascii for chat (best at size 25 or less), json for programs. | svg |
| height | No | Rectangle only: cells down. Overrides size. | |
| country | No | Country name, ISO code or alias, e.g. "Italy", "JP", "USA". Implies shape "country". | |
| show_solution | No | Draw the solution path (answer key). |