Skip to main content
Glama

mcp-text-editor

by tumf
MIT License
145
  • Apple
  • Linux

append_text_file_contents

Append content to an existing text file with specified encoding using an absolute file path and hash for concurrency control. Ensures efficient file updates on the MCP server.

Instructions

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" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tumf/mcp-text-editor'

If you have feedback or need assistance with the MCP directory API, please join our Discord server