pause_flow
Pause an active automation flow by specifying the flow ID, enabling temporary suspension of processes managed by HiveFlow MCP Server.
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:681-692 (handler)The handler function for the 'pause_flow' tool. It sends a POST request to the HiveFlow API endpoint `/api/flows/{flowId}/pause` to pause the specified flow and returns a formatted success message with the 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.js:125-133 (schema)The 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:122-135 (registration)The registration of the 'pause_flow' tool in the list of available tools returned by ListToolsRequestSchema, 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:222-223 (registration)The dispatch case in the CallToolRequestSchema handler that routes 'pause_flow' calls to the pauseFlow method.case 'pause_flow': return await this.pauseFlow(args);