create_file_with_ai

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.

create_content_prompt

prompt

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

Returns

TypeDescription

string

The path to the newly created file.

Example

- name: create_file_with_ai
  arguments:
    path_to_file: <relative-path-to-file>
    create_content_prompt: <prompt-for-creating-file>
  returns: <path-to-created-file>

Last updated