get_element_details
Retrieve comprehensive details about a specific element, such as personas, skills, or templates, by specifying its name and type within the DollhouseMCP server.
Instructions
Get detailed information about a specific element
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The element name to get details for | |
| type | Yes | The element type |
Implementation Reference
- src/server/tools/ElementTools.ts:157-178 (handler)The MCP tool registration including name, description, input schema, and handler function. The handler delegates to the server's getElementDetails method.{ tool: { name: "get_element_details", description: "Get detailed information about a specific element", inputSchema: { type: "object", properties: { name: { type: "string", description: "The element name to get details for", }, type: { type: "string", description: "The element type", enum: Object.values(ElementType), }, }, required: ["name", "type"], }, }, handler: (args: GetElementDetailsArgs) => server.getElementDetails(args.name, args.type) },
- TypeScript interface defining the input arguments for the get_element_details tool.interface GetElementDetailsArgs { name: string; type: string; }
- src/server/ServerSetup.ts:53-53 (registration)Global registration of all element tools (including get_element_details) into the ToolRegistry during server setup.this.toolRegistry.registerMany(getElementTools(instance));
- src/server/types.ts:22-22 (schema)IToolHandler interface defining the server method signature called by the tool handler.getElementDetails(name: string, type: string): Promise<any>;