find_files_by_name_and_content_with_regex

Finds files by name and content using regex patterns.

Arguments

Name
Type
Description
Required

find_file_name_pattern

prompt

The regex pattern used to find files by their names.

find_content_pattern

prompt

The regex pattern used to filter files by their content.

limit

number

Limit the amount of results returned.

Returns

Type
Description

prompt

List of relative paths to files that match both the file name and content patterns.

Example

- name: find_files_by_name_and_content_with_regex
  arguments:
    find_file_name_pattern: <grep-compatible-regex>
    find_content_pattern: <grep-compatible-regex>
  returns: ['path/to/file1', 'path/to/file2']

Last updated