Skip to main content
Glama

export_collection

Export Outline wiki collections to Markdown or JSON formats for backup, migration, or external use.

Instructions

Export a collection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collectionIdYes
formatNooutline-markdown

Implementation Reference

  • The primary handler function that implements the logic for exporting a collection by calling the Outline API endpoint '/collections.export' with the provided collection ID and format.
    async export_collection(args: ExportCollectionInput) { const { data } = await apiCall(() => apiClient.post<unknown>('/collections.export', { id: args.collectionId, format: args.format }) ); return { success: true, collectionId: args.collectionId, format: args.format, fileOperation: data, message: MESSAGES.COLLECTION_EXPORT_STARTED, }; },
  • Zod schema defining the input for export_collection: collectionId (UUID string) and format (enum ['outline-markdown', 'json'], default 'outline-markdown'). Relies on shared fragments collectionId and exportFormat defined earlier.
    export const exportCollectionSchema = z.object({ collectionId, format: exportFormat });
  • Registers the export_collection tool by creating its MCP tool definition (name, description, input JSON Schema derived from Zod schema via createTool).
    createTool( 'export_collection', 'Export a collection.', 'export_collection' ),

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-wiki-mcp'

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