export_all_personas
Export all AI personas, including default personas if specified, into a JSON bundle for easy management and integration with the DollhouseMCP server's dynamic persona system.
Instructions
Export all personas to a JSON bundle
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeDefaults | No | Include default personas in export (default: true) |
Implementation Reference
- src/server/tools/PersonaTools.ts:32-46 (registration)Commented registration of the 'export_all_personas' MCP tool, including full tool definition (name, description, inputSchema) and handler that delegates to server.exportAllPersonas()// tool: { // name: "export_all_personas", // description: "Export all personas to a JSON bundle", // inputSchema: { // type: "object", // properties: { // includeDefaults: { // type: "boolean", // description: "Include default personas in export (default: true)", // }, // }, // }, // }, // handler: (args: any) => server.exportAllPersonas(args.includeDefaults) // },
- src/server/types.ts:63-63 (schema)Interface definition (IToolHandler) for the server.exportAllPersonas method called by the tool handler, specifying the input parameter matching the tool schemaexportAllPersonas(includeDefaults?: boolean): Promise<any>;
- PersonaExporter.exportBundle method implementing the core export logic for all personas with includeDefaults filtering, which server.exportAllPersonas would useexportBundle(personas: Persona[], includeDefaults: boolean = true): ExportBundle { const filteredPersonas = includeDefaults ? personas : personas.filter(p => !isDefaultPersona(p.filename)); return { version: '1.0.0', exportedAt: new Date().toISOString(), exportedBy: this.currentUser || undefined, personaCount: filteredPersonas.length, personas: filteredPersonas.map(p => this.exportPersona(p)) }; }