grep_files_with_matches
Search a directory for files containing a specific pattern using regex or plain text, with options for case sensitivity, whole-word matching, file extensions, and exclusion patterns. List only the matching file names.
Instructions
List only the names of files that contain the pattern
Input Schema
Name | Required | Description | Default |
---|---|---|---|
case_sensitive | No | Whether the search should be case sensitive | |
exclude_patterns | No | Exclude files matching these patterns | |
file_extensions | No | Only search files with these extensions | |
pattern | Yes | Regular expression pattern or plain text to search for | |
target | Yes | Directory path to search in | |
whole_words | No | Match whole words only |