Skip to main content
Glama

export_all_collections

Export all collections from Outline wiki in Outline Markdown or JSON format for backup, migration, or external use.

Instructions

Export all collections.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNooutline-markdown

Implementation Reference

  • The async handler function that implements the core logic of the export_all_collections tool by calling the Outline API endpoint '/collections.export_all'.
    async export_all_collections(args: ExportAllCollectionsInput) { const { data } = await apiCall(() => apiClient.post<unknown>('/collections.export_all', { format: args.format }) ); return { success: true, format: args.format, fileOperation: data, message: MESSAGES.COLLECTION_EXPORT_ALL_STARTED, }; },
  • Zod input schema for the export_all_collections tool, defining the 'format' parameter.
    export const exportAllCollectionsSchema = z.object({ format: exportFormat });
  • MCP tool registration defining the name, description, and linking to the Zod schema for export_all_collections.
    createTool( 'export_all_collections', 'Export all collections.', 'export_all_collections' ),
  • Registration of the export_all_collections schema in the central toolSchemas object.
    export_all_collections: exportAllCollectionsSchema,
  • Shared schema fragment for export format used by export_all_collections and other export tools.
    const exportFormat = z.enum(['outline-markdown', 'json']).default('outline-markdown');

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