WoWState

Export full World of Warcraft character state to SavedVariables for external tools and AI assistants.

WoWState (wow-state) is a lightweight, zero-UI World of Warcraft addon and Python CLI built so AI agents and coding assistants (Claude, ChatGPT, Codex, Gemini, Antigravity, scripts, etc.) can read, interpret, and analyze your live WoW character outside the game — with no screenshots or manual copy-pasting.

Because WoW addons cannot write JSON directly to disk, WoWState exports your character state into SavedVariables/WoWState.lua (WoWStateDB), and the companion wow-state CLI auto-discovers that file and turns it into compact, token-efficient JSON (~80-90% smaller than raw Lua).

Why Agents Use WoWState

  • Gear, stats & upgrades: "Compare my equipped gear and stats — which slot should I upgrade next, and am I hit/crit capped?"
  • Talents, rotation & action bars: "Look at my talents, spellbook, action bars, and macros — what rotation should I use or what is missing from my bars?"
  • Professions, bags & crafting: "Check my bags, bank, and learned recipes — what can I craft or sell right now?"
  • Quests, travel & endgame: "Look at my zone, active quest log, lockouts, and Great Vault — what should I do next?"

Step-by-Step Instructions

  1. Install WoWState into your Interface/AddOns/ directory.
  2. Type /wowstate in-game (or /wstate) whenever you want to capture fresh state and immediately reload your UI to write SavedVariables/WoWState.lua to disk.
    • Optional: Open your Bank once per update/session to include Bank, Reagent Bank, and Warband Bank items (carried forward on later collects). Open your Profession window(s) once to capture all learned recipes. /played time is captured automatically after login.
  3. Run uvx wow-state from any terminal or AI assistant (pip install wow-state optional). Supports --only character,stats,equipment, --summary, --section recipes, --character <name>, and --all.

In-Game Slash Commands

  • /wowstate or /wstate (also /wowstate save) — refresh your snapshot and immediately reload the UI to flush to disk (safely skips UI reload during combat)
  • /wowstate collect — refresh in memory only (without reloading UI)
  • /wowstate status — print addon version, load count, collect stats, and last collect reason
  • /wowstate help — show slash command usage

What Data & Stats WoWState Saves

Runs safely inside xpcall across Retail, MoP Classic, Cataclysm Classic, TBC Classic, Classic Era, and custom 16001 builds, with combat deferral (PLAYER_REGEN_ENABLED catch-up), burst coalescing, native ADDON_LOADED session sync, and keep-last-good merge:

  • Stats (stats):
    • Resources: health/healthMax, primary power (MANA, RAGE, ENERGY, FOCUS, RUNIC_POWER, etc.), class-gated secondaryPowers (comboPoints, runes, soulShards, holyPower, chi, arcaneCharges, essence).
    • Attributes & iLvl: itemLevel (overall, equipped, pvp), primary attributes (strength, agility, stamina, intellect, spirit with base/effective/buffs).
    • Defense & Resistances: armor & armorParts, defense (base/modifier/total), dodge, parry, block, blockValue, elemental resistances (fire, nature, frost, shadow, arcane).
    • Melee & Ranged: attackPower (+ parts), meleeDamage (MH/OH min/max/speed), critChance, hitModifier, meleeHaste, expertise (MH/OH/ranged), armorPenetration, rangedAttackPower (+ parts), rangedDamage, rangedCrit, rangedHaste.
    • Spellcasting & Ratings: spellCrit + spellCritBySchool, spellBonusDamage by school, spellBonusHealing, spellHaste, spellHitModifier, spellPenetration, manaRegenBase, manaRegenCasting, haste, mastery/masteryBonus, versatility, leech, avoidance, speed, non-zero combatRatings, and movementSpeed (current, run, flight, swim).
  • Character & Location: name, realm, class, race, faction, level, XP/rested XP, gold, hearthstone bind, guild, PvP flag, /played total & level time, zone, subzone, map coordinates, and continent/instance difficulty.
  • Gear, Bags & Banks: equipped slots 0-19 (slotName, item ID, quality, iLvl, durability), equipped bags, carried inventory, Character Bank, Reagent Bank, and Warband Bank.
  • Progression & Combat Setup: professions/weapon skills/languages, learned recipes per profession (recipesByChar), Classic talent tabs & Retail specialization/loadout string/hero spec/trait nodes, spellbook, action bar slots 1-180, and account/character macros.
  • World, PvP & Endgame: active quest log, completed quest IDs & count, reputations (standing name + progress bar), currencies, buffs/debuffs, mounts & achievement points, PvP HKs/honor/rank/rated brackets, raid lockouts, world bosses, Mythic+ score/keystone/runs, Great Vault progress, and active pet/companion stats.

Links

WoWState Team

profile avatar
  • 1
    Projects
  • 13
    Downloads