get_active_elements
Retrieve real-time data on active elements (personas, skills, templates, agents, memories, ensembles) in DollhouseMCP for dynamic AI persona management and context control.
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)The complete tool definition block for 'get_active_elements', including the handler function that executes the tool logic by calling server.getActiveElements(type). This is the primary implementation of the MCP tool.{ 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; }
- src/server/ServerSetup.ts:53-53 (registration)Registration of all element tools (including get_active_elements) into the tool registry during server setup.this.toolRegistry.registerMany(getElementTools(instance));
- src/server/types.ts:20-20 (schema)Interface definition for the underlying server.getActiveElements method called by the tool handler.getActiveElements(type: string): Promise<any>;