create_file_with_context

A tool to create a new file based on instructions. If no instructions are provided, this simply acts like touch.

Arguments

NameTypeDescriptionRequired

path_to_file

string

The path to the file that needs to be created. The path should be relative to the project root.

file_path_info_prompt

prompt

The prompt used to create the path for the new file. If not defined, this simply acts like touch.

create_file_prompt

prompt

The prompt used to create the new file. If not defined, this simply acts like touch.

Returns

TypeDescription

string

The directory path where the file was created.

Example

- name: create_file_with_context
  arguments:
    path_to_file: <relative-path-to-file>
    create_file_prompt: <prompt-for-creating-file>
    file_path_info_prompt: <prompt-for-file-path-info>
  returns: <directory-path-where-file-was-created>

Last updated