Skip to main content
Glama

activate_element

Activate a specific element by name and type to enable dynamic AI persona management within the DollhouseMCP server.

Instructions

Activate a specific element by name

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe element name to activate
typeYesThe element type

Implementation Reference

  • Registers all element tools including activate_element via getElementTools
    // Register element tools (new generic tools for all element types)
    this.toolRegistry.registerMany(getElementTools(instance));
  • Tool schema definition for activate_element with input validation for name and type
    tool: {
      name: "activate_element",
      description: "Activate a specific element by name",
      inputSchema: {
        type: "object",
        properties: {
          name: {
            type: "string",
            description: "The element name to activate",
          },
          type: {
            type: "string",
            description: "The element type",
            enum: Object.values(ElementType),
          },
        },
        required: ["name", "type"],
      },
    },
    handler: (args: ActivateElementArgs) => server.activateElement(args.name, args.type)
  • Handler function for activate_element tool that delegates to server.activateElement(name, type)
      handler: (args: ActivateElementArgs) => server.activateElement(args.name, args.type)
    },
  • Calls getElementTools to register activate_element and other element tools to the registry
    this.toolRegistry.registerMany(getElementTools(instance));
  • ToolRegistry provides getHandler to retrieve and execute the activate_element handler during tool calls
    getHandler(name: string): ToolHandler | undefined {
      return this.tools.get(name)?.handler;
    }

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