Skip to main content
Glama

write_file

Create or update files by writing content to specified paths, automatically generating required directories and overwriting existing files when needed.

Instructions

Write content to a file. Creates directories if needed, overwrites existing files

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesFile path to write (absolute or relative). Parent directories will be created automatically
contentYesContent to write to file. Use \n for newlines, \t for tabs. UTF-8 encoding used

Latest Blog Posts

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/proofmath-owner/ai-filesystem-mcp'

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