Files

Create file

Create a new file or rewrite an existing one with the provided content.

Returns a message indicating success or failure, including the absolute path of the file.

Parameters#

target_filestringrequired

The absolute path of the file to create or rewrite.

contentstringdefault: ""

The content to write to the file. Defaults to empty.