write_file
Create new files or overwrite existing files with specified content at designated file paths. Handles text content with proper encoding for file management operations.
Instructions
Create a new file or completely overwrite an existing file with new content. Use with caution as it will overwrite existing files without warning. Handles text content with proper encoding.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path where the file should be written | |
| content | Yes | The content to write to the file |
Input Schema (JSON Schema)
{
"properties": {
"content": {
"description": "The content to write to the file",
"type": "string"
},
"path": {
"description": "The path where the file should be written",
"type": "string"
}
},
"required": [
"path",
"content"
],
"type": "object"
}