pause_flow
Pause an active automation flow in HiveFlow to temporarily halt execution for maintenance or adjustments.
Instructions
Pausa un flujo activo
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | ID del flujo a pausar |
Implementation Reference
- src/index.js:395-406 (handler)The core handler function for the 'pause_flow' tool. It makes a POST request to the HiveFlow API endpoint `/api/flows/{flowId}/pause` using the configured axios client and returns a formatted success response with the flow's new status.async pauseFlow(args) { const response = await this.hiveflowClient.post(`/api/flows/${args.flowId}/pause`); return { content: [ { type: 'text', text: `⏸️ Flujo pausado exitosamente.\nEstado: ${response.data.status || 'pausado'}` } ] }; }
- src/index.ts:405-416 (handler)TypeScript version of the core handler function for the 'pause_flow' tool. Identical logic to the JS implementation: POST to HiveFlow API to pause the flow.private async pauseFlow(args: any) { const response = await this.hiveflowClient.post(`/api/flows/${args.flowId}/pause`); return { content: [ { type: 'text', text: `⏸️ Flujo pausado exitosamente.\nEstado: ${response.data.status || 'pausado'}` } ] }; }
- src/index.js:124-133 (schema)Input schema for the pause_flow tool, defining that it requires a 'flowId' string parameter.inputSchema: { type: 'object', properties: { flowId: { type: 'string', description: 'ID del flujo a pausar' } }, required: ['flowId'] }
- src/index.js:121-134 (registration)Registration of the pause_flow tool in the ListTools response, including name, description, and input schema.{ name: 'pause_flow', description: 'Pausa un flujo activo', inputSchema: { type: 'object', properties: { flowId: { type: 'string', description: 'ID del flujo a pausar' } }, required: ['flowId'] } },
- src/index.js:221-222 (registration)Dispatch registration in the CallToolRequestSchema switch statement that calls the pauseFlow handler.case 'pause_flow': return await this.pauseFlow(args);