Skip to main content
Glama

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
NameRequiredDescriptionDefault
typeYesThe element type to reload

Implementation Reference

  • 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"], },
  • 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) },
  • Registration of all element tools (including reload_elements) to the ToolRegistry during server setup.
    this.toolRegistry.registerMany(getElementTools(instance));
  • Type definition for the underlying server.reloadElements method called by the tool handler.
    reloadElements(type: string): Promise<any>;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DollhouseMCP/DollhouseMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server