find_content_in_file_with_ai

Finds specific content in a file based on a given context prompt.

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_context_prompt

prompt

The prompt describing what content to find in the file.

Returns

TypeDescription

prompt

The specific content found in the file.

Example

- name: find_content_in_file_with_ai
  arguments:
    path_to_file: '{{ controller_file }}'
    find_context_prompt: 'Find the controller definition for {{ controller_name }}'
  returns: controller_definition

Last updated