Skip to main content
Glama
huiseo
by huiseo

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 handler function that executes the export_all_collections tool by calling the Outline API to start exporting all collections in the specified format.
    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 schema defining the input for export_all_collections: requires a 'format' parameter (enum: 'outline-markdown' or 'json').
    export const exportAllCollectionsSchema = z.object({ format: exportFormat });
  • Registration of the export_all_collections tool in the MCP tools list, converting the Zod schema to JSON Schema for the tool definition.
    createTool(
      'export_all_collections',
      'Export all collections.',
      'export_all_collections'
    ),
  • Mapping of the tool name to its schema in the central toolSchemas object used for tool definitions.
    export_all_collections: exportAllCollectionsSchema,
  • TypeScript type definition inferred from the exportAllCollectionsSchema for type safety in handlers.
    export type ExportAllCollectionsInput = z.infer<typeof exportAllCollectionsSchema>;

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