Skip to main content
Glama

write_file

Create new files or overwrite existing files with specified content at designated file paths. Handles text content with proper encoding for file management operations.

Instructions

Create a new file or completely overwrite an existing file with new content. Use with caution as it will overwrite existing files without warning. Handles text content with proper encoding.

Input Schema

NameRequiredDescriptionDefault
pathYesThe path where the file should be written
contentYesThe content to write to the file

Input Schema (JSON Schema)

{ "properties": { "content": { "description": "The content to write to the file", "type": "string" }, "path": { "description": "The path where the file should be written", "type": "string" } }, "required": [ "path", "content" ], "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/koopatroopa787/first_mcp'

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