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
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | outline-markdown |
Implementation Reference
- src/lib/handlers/collections.ts:77-87 (handler)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, }; },
- src/lib/schemas.ts:108-108 (schema)Zod input schema for the export_all_collections tool, defining the 'format' parameter.export const exportAllCollectionsSchema = z.object({ format: exportFormat });
- src/lib/tools.ts:166-170 (registration)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' ),
- src/lib/schemas.ts:237-237 (registration)Registration of the export_all_collections schema in the central toolSchemas object.export_all_collections: exportAllCollectionsSchema,
- src/lib/schemas.ts:16-16 (schema)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');