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 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, }; },
- src/lib/schemas.ts:108-108 (schema)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 });
- src/lib/tools.ts:166-170 (registration)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' ),
- src/lib/schemas.ts:237-237 (registration)Mapping of the tool name to its schema in the central toolSchemas object used for tool definitions.export_all_collections: exportAllCollectionsSchema,
- src/lib/schemas.ts:194-194 (schema)TypeScript type definition inferred from the exportAllCollectionsSchema for type safety in handlers.export type ExportAllCollectionsInput = z.infer<typeof exportAllCollectionsSchema>;