execute_agent
Activate and execute an AI agent with a defined goal to achieve specific tasks within the DollhouseMCP server, enabling dynamic persona management and goal-oriented actions.
Instructions
Execute an agent element with a specific goal
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | The goal for the agent to achieve | |
| name | Yes | The agent name to execute |
Implementation Reference
- src/server/tools/ElementTools.ts:220-240 (registration)Tool registration for 'execute_agent', including name, description, input schema, and handler function that delegates to server.executeAgent(name, goal){ tool: { name: "execute_agent", description: "Execute an agent element with a specific goal", inputSchema: { type: "object", properties: { name: { type: "string", description: "The agent name to execute", }, goal: { type: "string", description: "The goal for the agent to achieve", }, }, required: ["name", "goal"], }, }, handler: (args: ExecuteAgentArgs) => server.executeAgent(args.name, args.goal) },
- TypeScript interface defining the input arguments for the execute_agent toolinterface ExecuteAgentArgs { name: string; goal: string; }
- src/server/types.ts:31-31 (schema)Interface declaration in IToolHandler for the executeAgent method invoked by the tool's handlerexecuteAgent(name: string, goal: string): Promise<any>;
- src/server/tools/ElementTools.ts:239-239 (handler)The registered handler function for the execute_agent tool, which calls the server's executeAgent method with parsed argumentshandler: (args: ExecuteAgentArgs) => server.executeAgent(args.name, args.goal)