create_file
Generates a new file at a specified path with given content, supporting customizable encoding and optional overwrite functionality on the Enhanced Directory Context MCP Server.
Instructions
Create a new file with specified content
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | Content to write to the file | |
encoding | No | File encoding (default: utf8) | utf8 |
overwrite | No | Overwrite if file already exists | |
path | Yes | File path relative to working directory |
Input Schema (JSON Schema)
{
"properties": {
"content": {
"description": "Content to write to the file",
"type": "string"
},
"encoding": {
"default": "utf8",
"description": "File encoding (default: utf8)",
"type": "string"
},
"overwrite": {
"default": false,
"description": "Overwrite if file already exists",
"type": "boolean"
},
"path": {
"description": "File path relative to working directory",
"type": "string"
}
},
"required": [
"path",
"content"
],
"type": "object"
}