mcp-text-editor

by tumf
MIT License
37
  • Apple
  • Linux

create_text_file

Create a new text file with given content. The file must not exist already.

Input Schema

NameRequiredDescriptionDefault
contentsYesContent to write to the file
encodingNoText encoding (default: 'utf-8')utf-8
file_pathYesPath to the text file. File path must be absolute.

Input Schema (JSON Schema)

{ "properties": { "contents": { "description": "Content to write to the file", "type": "string" }, "encoding": { "default": "utf-8", "description": "Text encoding (default: 'utf-8')", "type": "string" }, "file_path": { "description": "Path to the text file. File path must be absolute.", "type": "string" } }, "required": [ "file_path", "contents" ], "type": "object" }