fast_search
Search file contents by regular expression, using a trigram index to narrow candidate files before matching. Limit searches to a subdirectory and inspect diagnostics when needed.
Instructions
Search file contents with a regular expression. A trigram index selects the candidate files first.
Args: pattern: A regular expression, for example "def process_.*event". path: Optional subdirectory relative to the project root. selectivity_threshold: Skip the index when more than this share of files can match (default 0.10). explain: Add search diagnostics to the output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| explain | No | ||
| pattern | Yes | ||
| workspace | No | Project path (default: this project) | |
| max_tokens | No | ||
| max_results | No | ||
| case_insensitive | No | ||
| selectivity_threshold | No |