run_agent
Execute an agent to perform all enabled outreach actions on LinkedIn, Email, X, Instagram, and Blog platforms for client acquisition.
Instructions
Trigger an immediate execution of an agent. The agent will run all enabled actions once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | The agent ID to run |
Implementation Reference
- src/tools/agents.ts:44-47 (handler)The handler for the 'run_agent' tool, which takes an 'agentId' argument and calls the corresponding client method.
handler: async (args: Record<string, unknown>) => { const result = await client.runAgent(args.agentId as string); return JSON.stringify(result, null, 2); }, - src/tools/agents.ts:37-43 (schema)Input schema for the 'run_agent' tool.
inputSchema: { type: 'object' as const, properties: { agentId: { type: 'string', description: 'The agent ID to run' }, }, required: ['agentId'], }, - src/tools/agents.ts:34-48 (registration)Tool registration for 'run_agent'.
name: 'run_agent', description: 'Trigger an immediate execution of an agent. The agent will run all enabled actions once.', inputSchema: { type: 'object' as const, properties: { agentId: { type: 'string', description: 'The agent ID to run' }, }, required: ['agentId'], }, handler: async (args: Record<string, unknown>) => { const result = await client.runAgent(args.agentId as string); return JSON.stringify(result, null, 2); }, }, - src/api-client.ts:42-44 (helper)API client method that performs the network request for running an agent.
async runAgent(id: string) { return this.request('POST', `/api/agents/${id}/run`); }