search
Find matching lines in files using a regex pattern. Returns file:line: text for each match.
Instructions
Search file contents with a regular expression. Returns 'file:line: text' for each match.
pattern: a Python regular expression. path: a folder or a single file; empty means the first root. Narrow it: ~/dev is large. glob: only search files whose relative path matches this glob, e.g. '*.md'. ignore_case: match regardless of case. max_results: stop after this many matching lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | ||
| path | No | ||
| pattern | Yes | ||
| ignore_case | No | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |