create_file
Create a new file with specified content at a given path. Automatically generates parent directories if missing. Fails if the file already exists. Operates within allowed directory roots for secure file creation.
Instructions
Create a new file with specified content.
Args: path (str): File path to create (absolute or relative to allowed directories) content (str): UTF-8 text content to write to the file
Returns: str: Success message with created file path, or error message if failed
Note:
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | ||
path | Yes |