Generate a crossword (crucigrama)
crosswordLays out a crossword from words with clues. Returns two matrices of the same size: puzzle (the game position: "-" is a blank cell, a word's number is on its first cell, "0" marks the other cells where a letter goes, and "a/d" such as "3/4" appears when an across word and a down word start in the same cell) and solution (the same matrix with the correct letters, one grapheme per cell). placements lists every word with its number, clue, direction (across/down) and start cell; unplaced lists words that did not fit. Offer more words than you need: the engine keeps the best layout it finds. Native letters (Ñ, Ç, ẞ…) stay one cell each. Free, no usage limit. The same seed gives the same crossword.
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": {
"entries": "<entries>",
"rows": "<rows>"
},
"name": "crossword"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | No | Largest width. Default: rows. | |
| open | No | Marker of letter cells that do not start a word in puzzle. Default "0". | |
| rows | Yes | Largest height; the result is cropped to what it uses. | |
| seed | No | Repeatable crossword. | |
| block | No | Marker of blank cells. Default "-". | |
| entries | Yes | Words with their clues. | |
| attempts | No | Layouts to try (default 30); more attempts, denser crossword. | |
| classicMode | No | Strip accents (ñ becomes N). |