Search a run's full output
grep_outputSearch the stored output of an earlier run with a regular expression and return matching lines with line numbers, plus optional context.
Instructions
Searches the full stored output of an earlier run with a regular expression and returns matching lines with line numbers.
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": {
"id": "<id>",
"pattern": "<pattern>"
},
"name": "grep_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Run id from `run`, e.g. r3. | |
| context | No | Lines of context around each match. | |
| pattern | Yes | Regular expression. Invalid patterns are searched as plain text. | |
| ignore_case | No | Match regardless of case. | |
| max_matches | No | Most matches to show. |