moose_parse_log
Parse DCS log files for runtime truth: session start, GM events, and scripting errors, with configurable event/error limits.
Instructions
Parse dcs.log for runtime truth (Pillar 4). Finds the current session start, extracts structured [GM] events (scope/phase/event sim + key=value), and collects SCRIPTING ERROR/WARNING, nil-index, and traceback lines. Never blends runs; handles truncation naturally. Token-budget returns only the requested number of events/errors, capped by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a dcs.log file, or omit to use the auto-discovered DCS install. | |
| max_errors | No | Max errors to return (default 100). | |
| max_events | No | Max events to return (default 300). | |
| this_session_only | No | Only return events/errors from the current session (after the last session-start marker). |