lichess_user_current_game
Retrieve a Lichess user's ongoing game or their last completed game as structured JSON, with optional moves, PGN, clocks, evaluations, accuracy, opening, and annotations.
Instructions
Get the ongoing or last game of a Lichess user. Returns the ongoing game of a user, or the last game played when none is in progress, as one source JSON record. Ongoing games are delayed by three moves. Flags choose the moves, full PGN, tags, clocks, evaluations, accuracy, opening, division and annotations. Person-level records (usernames, names, ratings) are returned as published under the maintainer's 2026-11-23 approval. Requests use the shared cross-replica serial gate and honor Lichess's 60-second minimum cooldown after HTTP 429.
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": {
"username": "<username>"
},
"name": "lichess_user_current_game"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Include the PGN tags in the pgn field; source default true | |
| evals | No | Include analysis evaluations when available; source default true | |
| moves | No | Include the moves; source default true | |
| clocks | No | Include clock times; source default true | |
| opening | No | Include the opening name; source default true | |
| accuracy | No | Include accuracy percent when available; source default false | |
| division | No | Include the middlegame and endgame plies; source default false | |
| literate | No | Insert textual annotations into the pgn field; source default false | |
| username | Yes | Lichess username | |
| pgnInJson | No | Include the full PGN in a pgn field; source default false |