search_output
Search program output for specific patterns using regex, returning matching lines with context to quickly find errors or log entries.
Instructions
Search program output for a pattern (regex supported).
Use this instead of get_output when looking for specific messages, errors, or log entries in large output. Returns matching lines with context.
Args: pattern: Regex pattern to search for (case-insensitive) context_lines: Number of lines before/after each match (default 2) category: Filter by category: "stdout", "stderr", or "console" (default: all)
Returns: List of matches with line numbers and context
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| context_lines | No | ||
| category | No |