reload_elements
Reload specific element types from the filesystem to update personas, skills, templates, agents, memories, or ensembles in the DollhouseMCP server.
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:195-195 (handler)The handler function for the 'reload_elements' tool. This arrow function receives the arguments and delegates to the server's reloadElements method with the provided type.handler: (args: ReloadElementsArgs) => server.reloadElements(args.type)
- Input schema validation for the reload_elements tool, defining the expected 'type' parameter.inputSchema: { type: "object", properties: { type: { type: "string", description: "The element type to reload", enum: Object.values(ElementType), }, }, required: ["type"], },
- src/server/tools/ElementTools.ts:179-196 (registration)The complete tool definition object for 'reload_elements' returned by getElementTools, which is registered to the tool registry.{ 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) },
- src/server/ServerSetup.ts:53-54 (registration)Registration of all element tools (including reload_elements) to the ToolRegistry during server setup.this.toolRegistry.registerMany(getElementTools(instance));
- src/server/types.ts:23-23 (schema)Type definition for the underlying server.reloadElements method called by the tool handler.reloadElements(type: string): Promise<any>;