Lichess puzzle by id
get_puzzleFetch a Lichess puzzle by 5-character ID to return FEN, side to move, rating, themes, and source game; reveal the solution only when reveal_solution is true.
Instructions
Fetch a Lichess puzzle by id: position (FEN), side to move, rating, themes and source game. The solution stays hidden unless reveal_solution=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Lichess puzzle id (5 characters, e.g. "uFTip"), as in lichess.org/training/uFTip. | |
| reveal_solution | No | Include the solution moves. Leave false to coach: let the player try first, then call again with true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| fen | Yes | The position the solver faces (after the opponent's last move). | |
| url | Yes | ||
| hint | No | A small nudge (which piece moves first) for when the player is stuck. Present only while the solution is hidden. | |
| plays | Yes | ||
| rating | Yes | ||
| themes | Yes | Lichess theme tags, e.g. "fork", "mateIn2", "endgame". | |
| message | Yes | ||
| solution | No | Full forced line, solver and opponent moves alternating. Only present when reveal_solution is true. | |
| last_move | No | The opponent's move that set up the puzzle. | |
| source_game | Yes | ||
| solver_color | Yes | ||
| solver_moves | Yes | How many moves the solver must find. | |
| solution_revealed | Yes |