find_content_in_file_with_regex

Finds all occurrences of specific content in a file based on a given regex pattern.

Arguments

NameTypeDescriptionRequired

path_to_file

string

The path to the file where the content needs to be found. The path should be relative to the project root.

find_content_pattern

string

The regex pattern describing what content to find in the file.

limit

number

Limit the number of matches returned.

exclude_duplicates

boolean

Exclude duplicates from the results.

Returns

TypeDescription

prompt

An array of specific content found in the file based on the regex pattern.

Example

- name: find_content_in_file_with_regex
  arguments:
    path_to_file: <path-to-file-with-content-to-search>
    find_content_pattern: <regex-pattern-to-search-for>
    limit: <optional-number-of-results-to-return>
    exclude_duplicates: <optional-boolean-to-exclude-duplicates>
  returns: <content-found>

Last updated