Skip to main content
Glama

mcp-text-editor

by tumf
MIT License
145
  • Apple
  • Linux

create_text_file

Generate and save a text file with specified content at an absolute file path using UTF-8 encoding by default. Ensures the file does not already exist.

Instructions

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

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