← Back to Blog

The Tools of a Digital Dungeon Master

Lorenzo Lorenzo · · 4 min read
The Tools of a Digital Dungeon Master

A human dungeon master juggles many responsibilities at once. Embertold's AI Game Master does the same — through a set of specialized tools designed for each aspect of running a game.

The Tool System

Instead of generating everything in a single block of text, the AI Game Master uses discrete tools for each type of output. This ensures each element is handled properly, with the right format, the right timing, and the right constraints.

Here's what's in the toolkit:

Narration

The core tool. The AI uses this to describe scenes, action outcomes, environmental changes, and story progression. Narration is the backbone of the experience — everything else enhances it.

Narration is paced deliberately. Instead of one massive paragraph, the AI sends narration in beats, giving you time to absorb each piece before moving on.

NPC Dialogue

When an NPC speaks, it's handled through a dedicated dialogue system — not just text in quotation marks within narration. This separation means:

  • Each NPC has a registered identity with consistent traits
  • Voice generation (when enabled) is triggered automatically
  • The AI tracks who said what for conversation history

NPCs are formally registered when they first appear, with personality traits and voice assignments. This ensures the gruff blacksmith sounds the same whether they're introducing themselves or arguing with you ten turns later.

Player Actions

After narrating, the AI generates contextual action suggestions. These aren't generic options — they're based on your current situation, character stats, inventory, and the narrative context.

You're never locked into these suggestions. They're there to inspire, not to limit. Type whatever you want and the AI adapts.

Knowledge Queries

The AI can query the universe knowledge base mid-turn. When it needs to describe a location accurately, reference a historical event, or portray an NPC consistently, it pulls from indexed lore in real-time.

This happens silently — you don't see the query. You just experience narration that's surprisingly well-informed about obscure details.

Scene Images

When the narrative calls for it, the AI generates a landscape illustration of the current scene. It crafts a visual prompt, sends it to the image generation system, and the result appears in your session.

The AI is selective — images are generated for impactful moments, not every message.

Sound Effects & Ambient Audio

Two separate tools handle audio:

  • Sound effects — One-shot sounds for dramatic moments
  • Ambient soundscapes — Continuous layered background audio

The AI chooses between these based on the moment. A sudden event gets a sound effect. A new location gets an ambient change. The rule is: no more than one of each per turn, to avoid audio overload.

Inventory Management

The AI can add and remove items from your inventory through explicit tool calls. This means inventory changes are structured and trackable — not just mentioned in passing within narration.

Health Management

Damage and healing are handled through a dedicated health tool. The AI specifies the amount and reason, and the system updates your character's health accordingly. This triggers visual feedback (health bar changes) and can trigger story events (dropping to zero health ends the adventure).

Chapter Management

When the AI decides a chapter has reached a natural conclusion, it triggers the chapter completion tool. This generates a summary of the chapter's events, creates an AI-generated chapter title, and starts a fresh chapter with full context.

Adventure Conclusion

When the story reaches its end — victory or defeat — the AI uses the conclusion tool to wrap up. This generates a final summary, assigns an outcome, and transitions the session to its completed state.

The Orchestration

The real magic isn't in any single tool — it's in how the AI orchestrates them. A single player turn might involve:

  1. Querying lore about the current location
  2. Narrating the result of the player's action
  3. Having an NPC react with voiced dialogue
  4. Updating the player's inventory
  5. Setting a new ambient soundscape
  6. Generating action suggestions for the next turn

All coordinated by one AI agent, making real-time decisions about what the moment needs. That's the digital dungeon master at work. For the architecture behind it all, read Building an AI Game Master from Scratch.

Related Posts