workbench

v0.2.4
@modwrench/workbench Checked 3 days ago Published 2 months ago

ModWrench — the modder workbench.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

mw_detect_environment

See what you're working with. Auto-detects OS, Steam Deck, installed mod-friendly games (Bethesda / Unity co-op), per-game loaders (SKSE / F4SE / BepInEx), mod managers (MO2 / Vortex / r2modman), and Proton versions on Linux. Read-only — reads known config/save locations and touches nothing else. Use when the user asks "what've I got installed", "find my games", or before any tool that needs to know their setup.

mw_read_load_order

Post your load order — but here, not in a Discord. Reads it for a specific game from whichever manager the user runs (MO2, r2modman, or best-effort Vortex). Normalized output: each entry has name, enabled state, load-order index, and attribution when available. Read-only. Use when the user says "show/post my load order", "what mods do I have enabled", or "what order are my mods in".

ParameterTypeDescription
gameId *stringCanonical game ID (e.g. 'skyrimspecialedition', 'lethalcompany'). Use mw_detect_environment to discover the games on this machine.
instancePathstringOptional override for MO2's instance path — useful for portable MO2 installs that don't live under %LOCALAPPDATA%/ModOrganizer.
modManagerstringWhich mod manager to read from. Default 'auto' — picks the most likely manager for this game's family.
profileNamestringProfile name. MO2 reads the active profile from ModOrganizer.ini if omitted; r2modman defaults to the first profile alphabetically (typically 'Default').

mw_parse_crashlog

Crash log in, structure out. Parses a crashlog (file path or pasted content) into fields: exception type, call stack, loaded plugins, registers, suspected FormID refs. Handles Crash Logger SSE (Skyrim), Buffout 4 (Fallout 4), NetScriptFramework (older Skyrim), and BepInEx (Unity). Returns parsed structure only — naming the culprit is the model's job, reasoned over the actual load order, not pattern-matched from a list. Use when the user says "my game crashed", "CTD", "here's my crash log", or "why did it crash".

ParameterTypeDescription
logContentstringCrashlog file content as a string. Provide this OR logPath.
logPathstringAbsolute path to a crashlog file on disk. Common locations: ~/Documents/My Games/Skyrim Special Edition/SKSE/crash-*.log for Crash Logger SSE, ~/Documents/My Games/Fallout4/F4SE/crash-*.log for Buffou…
logTypestringFormat hint. Default 'auto' — detect from content. Pass an explicit type when the auto-detect heuristic fails on a truncated log.

mw_query_mod_metadata

Put a name and a source on a mod. Looks up metadata across platforms (Nexus, mod.io) in one normalized shape: id, name, author, version, downloads, endorsements, pageUrl, and a permissions block that always carries attribution. Use it to enrich a crashlog suspect or a load-order entry — "who made this", "look up this mod", "what version is X". Thunderstore support is planned.

ParameterTypeDescription
gameIdstringPlatform-specific game identifier. For Nexus: the domain name (e.g. 'skyrimspecialedition'). For mod.io: the numeric game id as a string. Use modio_list_games / nexus_list_games to discover these.
modIdstringPlatform-specific mod ID. Nexus IDs are numeric (from the URL); mod.io IDs are numeric too. Required for direct lookup.
modNamestringMod name for fuzzy lookup (mod.io only — Nexus has no public search endpoint). Pass with gameId.
platformstringWhich platform to query. Default 'any' — tries Nexus first when a numeric modId + gameId are given, then mod.io. Use explicit platform to skip the cascade.

mw_check_known_conflicts

Check a list of mods/plugins for known pairwise incompatibilities. Two sources: LOOT's masterlist (live, Bethesda games) and ModWrench's bundled community conflict database (any game). Returns conflicts with severity, description, source attribution, and an optional patch suggestion. It flags what's on the list — it won't promise the game runs clean. Input ids can be plugin filenames ("Skyrim.esp") or platform-prefixed mod ids ("nexus:12345"). Use when the user asks "what's conflicting", "will these mods fight", or "known issues between X and Y".

ParameterTypeDescription
gameId *stringCanonical game ID (e.g. 'skyrimspecialedition', 'lethalcompany'). LOOT support is Bethesda-only; non-Bethesda games rely on the community database only.
modIds *arrayList of mods/plugins to check pairwise. Entries can be plugin filenames ('Skyrim.esp') or platform-prefixed mod IDs ('nexus:12345', 'modio:67890', 'thunderstore:Author-ModName'). At least 2 required f…

mw_diagnose_crash

Crash log in, culprit shortlist out. Parses the log, then correlates its suspects with the loaded plugins and (with a gameId) the known-conflict database into one bundle: which suspected mods are actually in the load order, at what index, and which loaded plugins have known conflicts. It lines up the evidence; it does NOT name the cause — that's the model's call, reasoned over the data. Use when the user says "what's causing my crash", "which mod is it", or pastes a crash log and wants the answer.

ParameterTypeDescription
gameIdstringCanonical game id (e.g. 'skyrimspecialedition', 'fallout4') to include the known-conflict cross-check. Omit to skip it.
logContentstringCrashlog content as a string. Provide this OR logPath.
logPathstringAbsolute path to a crashlog on disk (the SKSE/F4SE crash folder, or the game's BepInEx/LogOutput.log).
logTypestringFormat hint. Default 'auto' — detect from content.