Search file contents
file_grepSearch file contents recursively for a regex pattern, returning matching lines. Use with a root path and pattern to locate specific text across files.
Instructions
Recursively search file contents for a regex pattern. Prefers ripgrep, falls back to grep or pure Python.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | ||
| pattern | Yes | ||
| max_matches | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |