download_replay
Retrieve a match replay as JSONL text for post-game analysis. Use the connection ID to download replay data while the connection remains active.
Instructions
Fetch this connection's match replay as JSONL text.
Available while the connection is IN_GAME (including after the game has ended; token stays valid briefly so clients can download before state is purged).
── Locking ── Resolve phase under state_lock. File read happens OUTSIDE state_lock (may be large). The ReplayWriter has its own lock — reading the file path is a stable-after-init attribute, safe to read without holding the writer lock.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes |