resume_flow
Resume paused automation flows in HiveFlow by providing the flow ID. Ideal for restoring interrupted processes and maintaining workflow continuity.
Instructions
Reanuda un flujo pausado
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | ID del flujo a reanudar |
Implementation Reference
- src/index.js:694-705 (handler)The main handler function for the 'resume_flow' tool. Sends a POST request to `/api/flows/${flowId}/resume` via hiveflowClient and returns a formatted success message with the flow's new status.async resumeFlow(args) { const response = await this.hiveflowClient.post(`/api/flows/${args.flowId}/resume`); return { content: [ { type: 'text', text: `▶️ Flujo reanudado exitosamente.\nEstado: ${response.data.status || 'activo'}` } ] }; }
- src/index.js:139-147 (schema)Input schema definition for the 'resume_flow' tool, specifying that it requires a 'flowId' string parameter.inputSchema: { type: 'object', properties: { flowId: { type: 'string', description: 'ID del flujo a reanudar' } }, required: ['flowId']
- src/index.js:136-149 (registration)Registration of the 'resume_flow' tool in the MCP server's ListTools response, including name, description, and input schema.{ name: 'resume_flow', description: 'Reanuda un flujo pausado', inputSchema: { type: 'object', properties: { flowId: { type: 'string', description: 'ID del flujo a reanudar' } }, required: ['flowId'] } },
- src/index.js:224-225 (registration)Dispatch/routing logic in the CallToolRequestHandler that maps 'resume_flow' tool calls to the resumeFlow method.case 'resume_flow': return await this.resumeFlow(args);