kb_export
Export knowledge base data to JSON format for backup, transfer, or integration with other systems.
Instructions
Export knowledge base as JSON string
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:303-309 (schema)Tool schema definition with empty input schema and description for exporting knowledge base as JSON.name: 'kb_export', description: 'Export knowledge base as JSON string', inputSchema: { type: 'object', properties: {} } },
- src/index.ts:831-841 (handler)MCP tool handler for 'kb_export' that calls KnowledgeManager.exportKnowledgeBase() and returns the JSON as text content.case 'kb_export': { const data = await km.exportKnowledgeBase(); return { content: [ { type: 'text', text: data } ] }; }
- src/KnowledgeManager.ts:360-362 (handler)Core implementation of kb_export: serializes the entire knowledge base to formatted JSON string.async exportKnowledgeBase(): Promise<string> { return JSON.stringify(this.kb, null, 2); }