deactivate_element
Deactivate a specific element (personas, skills, templates, agents, memories, or ensembles) within the DollhouseMCP server to manage AI persona behaviors and configurations efficiently.
Instructions
Deactivate a specific element
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The element name to deactivate | |
| type | Yes | The element type |
Implementation Reference
- src/server/tools/ElementTools.ts:136-156 (registration)Tool registration including name, description, input schema, and handler function that delegates to server.deactivateElementtool: { name: "deactivate_element", description: "Deactivate a specific element", inputSchema: { type: "object", properties: { name: { type: "string", description: "The element name to deactivate", }, type: { type: "string", description: "The element type", enum: Object.values(ElementType), }, }, required: ["name", "type"], }, }, handler: (args: DeactivateElementArgs) => server.deactivateElement(args.name, args.type) },
- TypeScript interface defining the input arguments for the deactivate_element toolinterface DeactivateElementArgs { name: string; type: string; }
- src/server/types.ts:21-21 (schema)Interface definition for the underlying server.deactivateElement method in IToolHandlerdeactivateElement(name: string, type: string): Promise<any>;
- src/server/ServerSetup.ts:52-54 (registration)Registers all element tools (including deactivate_element) via getElementTools call to the ToolRegistry// Register element tools (new generic tools for all element types) this.toolRegistry.registerMany(getElementTools(instance));