Skip to content

Tool: create_file

Description: Create a new file with the given content, or overwrite if specified.

Argument Type Description
path str Path to the file to create or overwrite
content str Content to write to the file
overwrite bool, optional Overwrite if file exists (default: False)
backup bool, optional Create .bak before overwriting (default: True)
Returns str Status message indicating the result

Example usage: create_file(path="README.md", content="# Project", overwrite=False)


generated by janito.dev