create_file
Create a new file with specified content at a given path. Automatically generates parent directories if missing. Ensures file does not already exist and operates within allowed directory roots.
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: - Fails if the file already exists - Creates parent directories if they don't exist - Path must be within allowed directory roots
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | ||
path | Yes |