list_characters
Retrieve all player characters in your current D&D campaign to access their basic information for game management.
Instructions
List all characters in the current campaign.
Returns a list of all player characters with their basic information.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/dm20_protocol/storage.py:1115-1120 (handler)The 'list_characters' tool lists all character names in the current campaign.
def list_characters(self) -> list[str]: """List all character names in the current campaign.""" if not self._current_campaign: return [] return list(self._current_campaign.characters.keys()) - src/dm20_protocol/storage.py:1121-1126 (handler)The 'list_characters_detailed' tool returns all character objects in the current campaign.
def list_characters_detailed(self) -> list[Character]: """Return all characters without redundant lookups - O(n) instead of O(2n).""" if not self._current_campaign: return [] return list(self._current_campaign.characters.values())