deactivate_element
Deactivate personas, skills, templates, agents, memories, or ensembles in the DollhouseMCP server to manage AI behavioral elements.
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:155-155 (handler)The handler function that executes the deactivate_element tool by delegating to the server's deactivateElement method.handler: (args: DeactivateElementArgs) => server.deactivateElement(args.name, args.type)
- src/server/tools/ElementTools.ts:136-154 (registration)Registration of the deactivate_element tool with description and input schema.tool: { 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"], }, },
- TypeScript interface defining the input arguments for the deactivate_element tool.interface DeactivateElementArgs { name: string; type: string; }
- src/server/ServerSetup.ts:53-53 (registration)Global registration of all element tools, including deactivate_element, to the MCP tool registry.this.toolRegistry.registerMany(getElementTools(instance));
- src/server/types.ts:21-21 (schema)Interface definition for the server's deactivateElement method called by the tool handler.deactivateElement(name: string, type: string): Promise<any>;