| Name | Type | Description |
|---|---|---|
pattern* | str | The regular expression pattern to search for in file contents. |
path | str | Default: '/'The directory to search in. If not specified, searches from root. |
include | str | None | Default: NoneFile pattern to filter (e.g., |
output_mode | Literal['files_with_matches', 'content', 'count'] | Default: 'files_with_matches' |
Fast content search tool that works with any codebase size.
Searches file contents using regular expressions. Supports full regex syntax and filters files by pattern with the include parameter.
Output format:
'files_with_matches': Only file paths containing matches'content': Matching lines with file:line:content format'count': Count of matches per file