Skip to main content
Glama

deactivate_persona

Deactivate the active AI persona, resetting behavior to its default state. Ideal for switching or terminating dynamic personas managed by the DollhouseMCP server.

Instructions

Deactivate the current persona

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core implementation of persona deactivation logic. Sets the activePersona to null and returns success/failure message.
    deactivatePersona(): { success: boolean; message: string } { if (!this.activePersona) { return { success: false, message: "No persona is currently active" }; } const persona = this.personas.get(this.activePersona); const personaName = persona?.metadata.name || this.activePersona; this.activePersona = null; return { success: true, message: `Deactivated persona: ${personaName}` }; }
  • Zod input schema for the deactivate_persona tool, which takes no arguments.
    export const DeactivatePersonaArgsSchema = z.object({});
  • Interface definition in IToolHandler for the deactivatePersona method, indicating where the tool handler would be implemented.
    deactivatePersona(): Promise<any>;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DollhouseMCP/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server