Get a player's recent games
get_recent_gamesRetrieve a Lichess player's recent games with opponents, ratings, results, endings, and openings, plus their win/loss/draw record; filter by color, rating, time control, or include moves.
Instructions
Most recent games of a Lichess player, newest first, with opponents, ratings, result, how the game ended and the opening. Also returns the player's win/loss/draw record over the games returned. Set withMoves to true only when the moves themselves are needed: they make the result much longer.
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": "get_recent_games"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | How many games to return, 1 to 20. | |
| color | No | Only games the player had this colour in. | |
| rated | No | true for rated games only, false for casual games only. | |
| perfType | No | Only games of this time control or variant. | |
| username | Yes | Lichess username, for example "DrNykterstein". Not case sensitive. | |
| withMoves | No | Include the moves of every game in SAN. |