get_flow
Retrieve details for a specific automation flow from the HiveFlow platform using its unique flow ID.
Instructions
Obtiene detalles de un flujo específico
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | ID del flujo |
Implementation Reference
- src/index.ts:376-388 (handler)The handler function for the 'get_flow' tool. It makes an API request to retrieve details of a specific flow by ID and returns a formatted text summary of the flow's information.private async getFlow(args: any) { const response = await this.hiveflowClient.get(`/api/flows/${args.flowId}`); const flow = response.data.flow; return { content: [ { type: 'text', text: `📊 Detalles del flujo "${flow.name}":\n• ID: ${flow._id}\n• Estado: ${flow.status || 'draft'}\n• Nodos: ${flow.nodes?.length || 0}\n• Descripción: ${flow.description || 'Sin descripción'}\n• Última actualización: ${flow.updatedAt || 'N/A'}` } ] }; }
- src/index.ts:99-112 (schema)The schema definition for the 'get_flow' tool, specifying the required 'flowId' input parameter.{ name: 'get_flow', description: 'Obtiene detalles de un flujo específico', inputSchema: { type: 'object', properties: { flowId: { type: 'string', description: 'ID del flujo' } }, required: ['flowId'] } },
- src/index.ts:227-228 (registration)The switch case that registers and routes calls to the 'get_flow' handler within the CallToolRequestSchema handler.case 'get_flow': return await this.getFlow(args);