search_text_in_files
Recursively regex-search text files under a directory using scoped grep, confined to the workspace. Filter by file glob and limit results to find patterns quickly.
Instructions
Recursively regex-search text files under a directory (like a scoped grep), confined to the workspace.
Args: path: Directory to search under, relative to the workspace root. pattern: Python regular expression to search each line for. file_glob: Glob to filter which files are searched, e.g. "*.py". max_results: Maximum number of matching lines to return (1-500).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| pattern | No | ||
| file_glob | No | * | |
| max_results | No |