get_active_elements
Retrieve details of active elements in DollhouseMCP, such as personas, skills, templates, agents, memories, or ensembles, to manage and monitor AI persona behavior efficiently.
Instructions
Get information about currently active elements of a specific type
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The element type to check |
Implementation Reference
- src/server/tools/ElementTools.ts:117-134 (handler)Defines and implements the 'get_active_elements' tool handler. The handler extracts the 'type' parameter and delegates to the server's getActiveElements method. Includes the complete tool definition with name, description, and JSON 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 handler.interface GetActiveElementsArgs { type: string; }
- src/server/ServerSetup.ts:52-54 (registration)Registers all element tools, including 'get_active_elements', into the tool registry during server setup.// Register element tools (new generic tools for all element types) this.toolRegistry.registerMany(getElementTools(instance));