mcp-text-editor

by tumf
MIT License
37
  • Apple
  • Linux

append_text_file_contents

Append content to an existing text file. The file must exist.

Input Schema

NameRequiredDescriptionDefault
contentsYesContent to append to the file
encodingNoText encoding (default: 'utf-8')utf-8
file_hashYesHash of the file contents for concurrency control. it should be matched with the file_hash when get_text_file_contents is called.
file_pathYesPath to the text file. File path must be absolute.

Input Schema (JSON Schema)

{ "properties": { "contents": { "description": "Content to append to the file", "type": "string" }, "encoding": { "default": "utf-8", "description": "Text encoding (default: 'utf-8')", "type": "string" }, "file_hash": { "description": "Hash of the file contents for concurrency control. it should be matched with the file_hash when get_text_file_contents is called.", "type": "string" }, "file_path": { "description": "Path to the text file. File path must be absolute.", "type": "string" } }, "required": [ "file_path", "contents", "file_hash" ], "type": "object" }