lichess_study_chapter_pgn
Export one chapter of a public Lichess study as PGN using study and chapter IDs, with optional clocks, comments, variations, and orientation tags.
Instructions
Export one chapter of a public Lichess study as PGN. Returns one chapter of a public study as PGN by study and chapter ID, with the study and chapter names and annotator tags. clocks, comments, variations and orientation choose what the PGN includes. 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": {
"studyId": "<studyId>",
"chapterId": "<chapterId>"
},
"name": "lichess_study_chapter_pgn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clocks | No | Include [%clk] clock comments; source default true | |
| studyId | Yes | Eight-character study ID | |
| comments | No | Include analysis and annotator comments; source default true | |
| chapterId | Yes | Eight-character chapter ID | |
| variations | No | Include non-mainline moves; source default true | |
| orientation | No | Add an Orientation tag with the chapter orientation; source default false |