export_document
Export Outline wiki documents as Markdown files for backup, sharing, or content migration.
Instructions
Export document in Markdown format.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes |
Implementation Reference
- src/lib/handlers/documents.ts:49-54 (handler)The handler function that executes the export_document tool by calling the Outline API endpoint '/documents.export' with the provided document ID and returns the exported document content (likely Markdown).async export_document(args: ExportDocumentInput) { const { data } = await apiCall(() => apiClient.post<string>('/documents.export', { id: args.documentId }) ); return data; },
- src/lib/schemas.ts:40-40 (schema)Zod schema defining the input for export_document: requires a documentId string.export const exportDocumentSchema = z.object({ documentId });
- src/lib/tools.ts:68-72 (registration)MCP tool registration for export_document, specifying name, description, and referencing the Zod schema via createTool function.createTool( 'export_document', 'Export document in Markdown format.', 'export_document' ),