windbg_run_command
Execute raw WinDbg/cdb commands with optional regex filtering and line limits, enabling targeted debugger output analysis.
Instructions
Run an arbitrary cdb/WinDbg command verbatim. Optional regex filter keeps only matching lines; max_lines caps noisy output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Raw cdb command, e.g. '!process 0 0' or '.frame 3' | |
| timeout | No | Seconds to wait for completion | |
| max_lines | No | Optional maximum number of output lines to return | |
| tail_lines | No | Return only the last N filtered lines before max_lines is applied | |
| ignore_case | No | Apply include/exclude regexes case-insensitively | |
| invert_match | No | With filter_pattern, keep non-matching lines instead of matching lines | |
| context_after | No | Include this many lines after each filter_pattern match | |
| context_before | No | Include this many lines before each filter_pattern match | |
| filter_pattern | No | Optional regex; when set, only matching output lines are returned | |
| split_commands | No | Split on semicolons outside quotes and run each command separately | |
| exclude_pattern | No | Optional regex; matching output lines are removed before include filtering | |
| per_command_timeout | No | Seconds per split command; defaults to timeout |