resume_flow
Resume a paused automation flow in HiveFlow by providing the flow ID to restart execution.
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. It sends a POST request to the HiveFlow API to resume the specified flow and returns a success message with the 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-148 (schema)Input schema for the 'resume_flow' tool, defining 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)Tool registration in the ListToolsRequestSchema handler, defining the name, description, and input schema for 'resume_flow'.{ 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 case in the CallToolRequestSchema handler that routes 'resume_flow' calls to the resumeFlow method.case 'resume_flow': return await this.resumeFlow(args);