Skip to main content
Glama
DollhouseMCP

DollhouseMCP

Official

get_active_elements

Retrieve currently active elements like personas, skills, or agents in the DollhouseMCP system to monitor and manage active AI components.

Instructions

Get information about currently active elements of a specific type

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesThe element type to check

Implementation Reference

  • Handler function for the 'get_active_elements' tool. It receives args with 'type' and delegates to server.getActiveElements(args.type). Includes the full tool definition with input schema.
    {
      tool: {
        name: "get_active_elements",
        description: "Get information about currently active elements of a specific type",
        inputSchema: {
          type: "object",
          properties: {
            type: {
              type: "string",
              description: "The element type to check",
              enum: Object.values(ElementType),
            },
          },
          required: ["type"],
        },
      },
      handler: (args: GetActiveElementsArgs) => server.getActiveElements(args.type)
    },
  • TypeScript interface defining the input arguments for the get_active_elements tool.
    interface GetActiveElementsArgs {
      type: string;
    }
  • Registration of the element tools, including 'get_active_elements', into the ToolRegistry during server setup.
    // Register element tools (new generic tools for all element types)
    this.toolRegistry.registerMany(getElementTools(instance));

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/mcp-server'

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