get_game_state
Retrieve the current game state to track character status, combat progress, and campaign details in AI-assisted Dungeons & Dragons sessions.
Instructions
Get the current game state.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/dm20_protocol/storage.py:1232-1236 (handler)The get_game_state handler in the storage layer, which retrieves the current game state from the campaign object.
def get_game_state(self) -> GameState | None: """Get the current game state.""" if not self._current_campaign: return None return self._current_campaign.game_state