search_output
Search program output for regex patterns to find specific errors or log entries, returning matching lines with surrounding context.
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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pattern": "<pattern>"
},
"name": "search_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| category | No | ||
| context_lines | No |