Skip to main content
Glama

export_document

Export Outline wiki documents as Markdown files for backup, sharing, or content migration.

Instructions

Export document in Markdown format.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentIdYes

Implementation Reference

  • The handler function that executes the export_document tool by calling the Outline API endpoint '/documents.export' with the provided document ID and returns the exported document content (likely Markdown).
    async export_document(args: ExportDocumentInput) { const { data } = await apiCall(() => apiClient.post<string>('/documents.export', { id: args.documentId }) ); return data; },
  • Zod schema defining the input for export_document: requires a documentId string.
    export const exportDocumentSchema = z.object({ documentId });
  • src/lib/tools.ts:68-72 (registration)
    MCP tool registration for export_document, specifying name, description, and referencing the Zod schema via createTool function.
    createTool( 'export_document', 'Export document in Markdown format.', 'export_document' ),

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/huiseo/outline-smart-mcp'

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