Import Chess PGN
game_import_pgnImport a chess game from PGN notation to create a new game and get its position. Validates PGN, rejecting malformed or illegal moves.
Instructions
Import a PGN into a new game. Returns a new game_id with the position after all PGN moves. Rejects malformed or illegal PGN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pgn | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fen | Yes | ||
| turn | Yes | ||
| isDraw | Yes | ||
| game_id | Yes | ||
| history | Yes | ||
| isCheck | Yes | ||
| castling | Yes | ||
| lastMove | Yes | ||
| revision | Yes | ||
| isGameOver | Yes | ||
| moveNumber | Yes | ||
| isCheckmate | Yes | ||
| isStalemate | Yes | ||
| isDrawByFiftyMoves | Yes | ||
| isThreefoldRepetition | Yes | ||
| isInsufficientMaterial | Yes |