Create sudoku
generate_sudokuUse this when the user wants a new sudoku puzzle to play or print (sudoku generator, printable sudoku with answers, easy sudoku for kids, hard sudoku). Generates a classic 9x9 sudoku at easy, medium or hard difficulty, checked by a solver for a single solution, playable in the chat with pencil notes, plus a printable PDF with the answer key. Does not solve a sudoku the user already has, explain solving strategies, or make 4x4, 6x6 or variant sudoku.
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_sudoku"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Optional layout seed (1-999999). The same inputs and seed always give the same puzzle; pass a different seed for a new layout. Example: 2024 | |
| paper | No | Paper size for the printable PDF: letter (US, default) or a4. Example: a4 | |
| title | No | Title printed on the puzzle and PDF. Example: "Friday Brain Teaser" | |
| difficulty | No | easy (37-38 givens, solvable with simple elimination), medium (30-32 givens, still solvable with singles), hard (24-30 givens, checked to require a technique beyond singles). Default medium. Example: hard |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| seed | Yes | ||
| paper | Yes | ||
| title | Yes | ||
| givens | Yes | ||
| puzzle | Yes | ||
| unique | Yes | ||
| pdf_note | No | ||
| solution | Yes | ||
| downloads | Yes | ||
| technique | Yes | ||
| difficulty | Yes |