resume_agent
Resume a paused agent to restart scheduled outreach actions in the Swarmix-MCP server for LinkedIn, Email, X, Instagram, and Blog campaigns.
Instructions
Resume a paused agent. It will start running scheduled actions again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | The agent ID to resume |
Implementation Reference
- src/tools/agents.ts:74-77 (handler)The handler function for the resume_agent tool, which calls the client's resumeAgent method.
handler: async (args: Record<string, unknown>) => { const result = await client.resumeAgent(args.agentId as string); return JSON.stringify(result, null, 2); }, - src/tools/agents.ts:64-78 (registration)The tool registration definition for resume_agent in src/tools/agents.ts.
{ name: 'resume_agent', description: 'Resume a paused agent. It will start running scheduled actions again.', inputSchema: { type: 'object' as const, properties: { agentId: { type: 'string', description: 'The agent ID to resume' }, }, required: ['agentId'], }, handler: async (args: Record<string, unknown>) => { const result = await client.resumeAgent(args.agentId as string); return JSON.stringify(result, null, 2); }, }, - src/api-client.ts:50-52 (helper)The underlying API client method that performs the actual network request to resume an agent.
async resumeAgent(id: string) { return this.request('PUT', `/api/agents/${id}`, { status: 'active' }); }