reload_elements
Reload specific elements (personas, skills, templates, etc.) from the filesystem to update configurations in the DollhouseMCP server for dynamic AI persona management.
Instructions
Reload elements of a specific type from the filesystem
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The element type to reload |
Implementation Reference
- src/server/tools/ElementTools.ts:179-196 (handler)Primary implementation of the 'reload_elements' MCP tool, including handler logic that delegates to the server's reloadElements method, input schema validation, and tool metadata.{ tool: { name: "reload_elements", description: "Reload elements of a specific type from the filesystem", inputSchema: { type: "object", properties: { type: { type: "string", description: "The element type to reload", enum: Object.values(ElementType), }, }, required: ["type"], }, }, handler: (args: ReloadElementsArgs) => server.reloadElements(args.type) },
- TypeScript interface defining the input arguments for the reload_elements tool.interface ReloadElementsArgs { type: string; }
- src/server/ServerSetup.ts:52-54 (registration)Registers the element tools (including reload_elements) with the MCP tool registry during server setup.// Register element tools (new generic tools for all element types) this.toolRegistry.registerMany(getElementTools(instance));
- src/server/types.ts:23-23 (schema)Interface definition for the underlying server.reloadElements method called by the tool handler.reloadElements(type: string): Promise<any>;