execute_flow
Execute a specific workflow in HiveFlow automation platform using its ID, with optional inputs to trigger automated processes.
Instructions
Ejecuta un flujo de trabajo específico
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | ID del flujo a ejecutar | |
| inputs | No | Inputs opcionales para el flujo |
Implementation Reference
- src/index.js:666-679 (handler)The executeFlow handler function that POSTs to the HiveFlow API to execute the specified flow with optional inputs and returns a success message with execution details.async executeFlow(args) { const response = await this.hiveflowClient.post(`/api/flows/${args.flowId}/execute`, { inputs: args.inputs || {} }); return { content: [ { type: 'text', text: `🚀 Flujo ejecutado exitosamente.\nExecution ID: ${response.data.executionId || 'N/A'}\nEstado: ${response.data.status || 'iniciado'}` } ] }; }
- src/index.js:107-120 (schema)Input schema defining the parameters for the execute_flow tool: required flowId (string) and optional inputs (object).inputSchema: { type: 'object', properties: { flowId: { type: 'string', description: 'ID del flujo a ejecutar' }, inputs: { type: 'object', description: 'Inputs opcionales para el flujo' } }, required: ['flowId'] }
- src/index.js:104-121 (registration)Registration of the execute_flow tool in the ListTools response, including name, description, and input schema.{ name: 'execute_flow', description: 'Ejecuta un flujo de trabajo específico', inputSchema: { type: 'object', properties: { flowId: { type: 'string', description: 'ID del flujo a ejecutar' }, inputs: { type: 'object', description: 'Inputs opcionales para el flujo' } }, required: ['flowId'] } },