search_games
Search your rated Lichess games by color, result, date, opponent, or opening. Retrieves live data from the Lichess API with fallback to local export.
Instructions
Search the user's own rated Lichess games (blitz by default).
Filters are from the USER's side: colour is the colour they played, result is their result ('win', 'loss', 'draw'). Dates are 'YYYY.MM.DD'. Fetches live from the Lichess API, falling back to the local export.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eco | No | ||
| since | No | ||
| until | No | ||
| colour | No | ||
| result | No | ||
| opponent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| games | Yes | The matching games, newest first. | |
| source | Yes | 'lichess-api' (live) or 'sidecar' (offline fallback). | |
| sample_size | Yes | How many games matched. Always report this alongside any percentage — with ~30 blitz games per colour in a 2-year window, a bare percentage is misleading. | |
| failed_to_parse | Yes | Games skipped as unreadable, never silently dropped. |