Skip to content

Living World, Scenes & Lore ​

Elthoria's living world simulation (elthoria-world-simulation-*) runs a deterministic, explainable campaign world alongside your table sessions: factions maneuver, rumors propagate, travel takes real weeks, story threads surface playable candidates, and every world fact can be traced back to its causal derivation in the historical world graph.


World simulation lifecycle & inspection (WorldSimMcpTools) ​

Bootstrap & world advancement ​

ToolPurpose
preview_world_sim_seedPreview how a world seed will project factions, settlements, and initial entities before creating it
create_world_simCreate a persistent world simulation for a campaign (supports blank_canvas: true for manual building)
set_primary_worldBind a world simulation as the campaign's primary living world
advance_world_weekAdvance deterministic simulation time by one week — consequences become canon only after success (note: timed background advancement is disabled by the launcher so time only moves when play calls for it)
run_sim_commandExecute a targeted simulation command directly
get_world_settings / update_world_settingsInspect or adjust simulation rule weights and settings

Inspecting living state (start with get_world_sim_overview) ​

ToolWhat it returns
get_world_sim_overviewTop-level summary: current week, season, realm stability, chaos factor, and headline pressures
get_world_latest_weekDigest of everything that happened during the most recent simulated week
get_world_atlas / get_world_place_profileRegions, settlements, points of interest, and detailed place profiles
get_world_social_directory / get_world_network / get_intrigue_graphAgents, factions, relationship edges, and intrigue/conspiracy structures
get_world_conflicts / get_world_predicamentsActive pressure signals, faction conflicts, and regional predicaments
get_world_decisions / get_world_threadsOpen decisions and active story threads
get_world_rumorsCurrent rumor feed (with provenance and distortion)
get_world_chronology / get_world_event_logDurable historical timeline: deaths, fallen party members, razed towns, treaties
get_world_scenesActive and queued world scenes
get_world_sim_artifacts / get_world_sim_artifact / get_world_sim_plansPersisted simulation artifacts and faction/agent plans
explain_world_factCausal explanation / derivation trail for why a world fact holds
query_historical_world_graph / get_world_sim_unified_graph_archiveQuery historical graph state or inspect the unified graph archive

Party travel, entities, lore & quest hooks ​

ToolPurpose
get_party_travel / plan_party_travel / cancel_party_travelInspect, schedule, or cancel multi-week overland party travel
list_world_entities / add_world_entity / update_world_entity / remove_world_entityManage simulated entities (factions, NPCs, settlements, relics)
get_npc_world_context / apply_npc_personal_eventInspect an NPC's living-world context or apply a personal turning-point event
report_world_eventCommit a player-caused event from table play back into the living simulation
validate_narrationCheck drafted GM narration against authoritative world facts before speaking
generate_quest_hooks / materialize_quest_hookGenerate grounded quest hooks from current pressures and materialize chosen hooks into canon
get_world_lore_workspace / ingest_world_lore / validate_lore_constraints / resolve_lore_constraintIngest setting lore, detect contradictions against world state, and resolve lore constraints explicitly
generate_world_scene_map / generate_world_scene_gridMaterialize a world scene into a map or tactical grid

Deterministic story candidates & counterfactual preview (WorldNarrativeMcpTools) ​

Rather than having an LLM hallucinate plot hooks disconnected from simulation state, WorldNarrativeMcpTools exposes a deterministic candidate-and-preview pipeline:

ToolPurpose
get_world_story_candidatesList deterministic, player-safe available actions, events, quests, and thread advancements
explain_world_story_candidateExplain why one candidate is available using only its grounded facts
preview_world_story_choiceClone the living simulation in isolation and run a candidate choice forward to preview its consequences without mutating canon
prepare_world_story_realizationBuild a strict JSON realization envelope so a secondary LLM can rewrite prose without altering mechanical facts
realize_world_story_candidateAsk an optional secondary Kompile chat model to turn one authoritative candidate into player-facing prose
choose_world_story_candidateCommit an explicitly chosen, still-current story candidate into canon
reject_world_story_candidateRecord that the players declined a possibility (without retracting graph facts)

Promoting campaign NPCs into world agents (NpcAgentMcpTools) ​

Bridge tactical/sheet NPCs (NpcMcpTools) into autonomous living-world actors:

ToolPurpose
register_npc_agentPromote a campaign NPC into the world simulation with an agent type, party disposition, and goal
list_npc_agentsList all NPCs promoted to simulated world agents
update_npc_agentUpdate disposition, goal, agent type, or enabled status (syncs live into running simulations)
remove_npc_agentRetire an NPC agent from the simulation

SceneExperience & optional media cues (SceneExperienceMcpTools, MediaAssetMcpTools) ​

ToolPurpose
get_integration_manifestDescribe versioned SceneExperience, event, media, REST, and MCP capabilities for integration clients
get_scene_experiencesRead the stable SceneExperience contract used by Play and Studio (turns, consequences, optional media cues)
list_media_providersList configured providers able to satisfy scene media cues
generate_scene_mediaRequest optional media for a scene cue (returns completed=false gracefully if no provider is configured, never blocking play)
list_media_assetsList provider-neutral media references scoped by scene_id and cue_id

Campaigns, journals & keyword Lorebooks (JournalMcpTools, LorebookMcpTools) ​

Campaigns & session journals ​

ToolPurpose
create_game / list_games / get_gameCreate an empty local campaign (create_game returns id to use as campaign_id; it does not auto-select an active campaign), list games, or inspect acts
create_journal_entryPersist a typed entry (GENERAL, SESSION_NOTES, QUEST, NPC_NOTES, LOCATION, CHARACTER_BACKGROUND, NPC_BACKGROUND, PLOT) linked to game, act, character, NPC, or location
get_journal_entry / list_journal_entries / get_game_journal_entriesRead and filter journal entries
update_journal_entry / delete_journal_entry / search_journalEdit, remove, or full-text search campaign journals

Keyword-triggered Lorebooks (World Info) ​

ToolPurpose
create_lorebook / list_lorebooks / get_lorebookManage scoped Lorebooks (GLOBAL, CAMPAIGN, CHARACTER, CHAT_SESSION)
create_lorebook_entry / update_lorebook_entry / delete_lorebook_entryDefine keyword-triggered lore entries supporting regex, case sensitivity, AND/NOT secondary keys, probability, sticky, cooldown, delay, and inclusion groups
search_lorebook_entriesSearch entries by trigger keyword, content, or GM comment
get_activated_entriesTest which Lorebook entries activate for recent conversation text (with exact content, position, and insertion order) so the external GM stays consistent with world lore

See Walkthrough 3: Living World, Oracle & Custom Tables, Walkthrough 5: Rulebooks, Lorebooks & Content Workbench, and the Memory Deep Dive.

Built on the upstream Kompile harness. Released under the MIT License.