Skip to main content
Glama

write_document

Generate and save document files automatically in HTML, Markdown, plain text, or DOCX formats. Specify content, encoding, and optional title; files are saved to OUTPUT_DIR with intelligent format detection.

Instructions

Write content to document files in specified formats. Output directory is controlled by OUTPUT_DIR environment variable. Files will be automatically saved to OUTPUT_DIR with auto-generated names based on content type (HTML, Markdown, or plain text). Supports intelligent format detection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesContent to write
encodingNoFile encodingutf-8
formatNoForce specific format: html, md, txt, docx (optional, auto-detected if not specified)
titleNoDocument title (optional, used for filename generation)

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/Tele-AI/doc-ops-mcp'

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