perch_grep
Search Perchance generator source with regex across model or output panes. Returns matching lines with optional context lines.
Instructions
Regex search across one pane (or both if pane omitted). Returns matching lines with optional 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": "perch_grep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pane | No | Omit to search both | |
| limit | No | Max matches returned. Default 200 | |
| pattern | Yes | JS regex pattern | |
| contextLines | No | Lines of context around each hit. Default 0 |