get_active_elements
Retrieve information about currently active elements like personas, skills, templates, agents, memories, or ensembles in the DollhouseMCP server.
Instructions
Get information about currently active elements of a specific type
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The element type to check |
Implementation Reference
- src/server/tools/ElementTools.ts:117-134 (handler)Tool handler for 'get_active_elements' that delegates to server's getActiveElements method with the provided type argument. Includes input schema validation.
{ 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:52-53 (registration)Registers the batch of 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)); - src/server/types.ts:20-20 (schema)Interface definition for the underlying server method called by the tool handler.
getActiveElements(type: string): Promise<any>; - src/server/ServerSetup.ts:9-9 (registration)Import of ElementTools module containing the get_active_elements tool definition.
import { getElementTools } from './tools/ElementTools.js';