agent_activate
Activate specialized AI agents for IT support, ethical hacking, sales expertise, or security team roles to enhance task-specific assistance and knowledge application.
Instructions
Activate a specialized AI agent (IT Expert, Hacker, Sales, Blue/Red/Purple Team)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Agent ID to activate |
Implementation Reference
- src/index.ts:898-918 (handler)Main handler logic for the agent_activate tool. Initializes AgentManager, sets the specified agent as active, retrieves the active agent details and its default tools, and returns a confirmation message with available tools.case 'agent_activate': { await am.initialize(); const { agent } = args as any; const success = am.setActiveAgent(agent); if (!success) { throw new Error(`Agent not found: ${agent}`); } const activeAgent = am.getActiveAgent(); const tools = getAgentTools(agent); return { content: [ { type: 'text', text: `✅ Activated ${activeAgent?.name}\n\nTools available: ${tools?.defaultTools.join(', ') || 'none'}` } ] }; }
- src/index.ts:348-362 (schema)Tool schema definition including name, description, and input schema specifying the 'agent' parameter with valid enum values.{ name: 'agent_activate', description: 'Activate a specialized AI agent (IT Expert, Hacker, Sales, Blue/Red/Purple Team)', inputSchema: { type: 'object', properties: { agent: { type: 'string', enum: ['it-expert', 'ethical-hacker', 'sales-expert', 'blue-team', 'red-team', 'purple-team'], description: 'Agent ID to activate' } }, required: ['agent'] } },
- src/AgentManager.ts:116-122 (helper)Core helper method in AgentManager that sets the active agent ID if the agent template exists in the loaded templates.setActiveAgent(id: string): boolean { if (this.templates.has(id)) { this.activeAgent = id; return true; } return false; }
- src/agent-tools.ts:468-470 (helper)Helper function that retrieves the predefined toolset for the specified agent, used to list available tools after activation.export function getAgentTools(agentId: string): AgentToolset | undefined { return AGENT_TOOLSETS[agentId]; }
- src/index.ts:423-425 (registration)Registration handler for listing all available tools, including agent_activate, by returning the global tools array.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });