get_flow
Retrieve specific automation flow details from the HiveFlow platform by providing the flow ID. This tool enables AI assistants to access and manage workflow information through natural language commands.
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.js:652-664 (handler)The main handler function for the 'get_flow' tool. It fetches the specific flow details from the HiveFlow API using the provided flowId and returns a formatted text response with key flow information.async getFlow(args) { 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.js:93-101 (schema)Input schema for the 'get_flow' tool, defining the required 'flowId' parameter as a string.inputSchema: { type: 'object', properties: { flowId: { type: 'string', description: 'ID del flujo' } }, required: ['flowId']
- src/index.js:90-102 (registration)Registration of the 'get_flow' tool in the tools list provided to the MCP server, including name, description, and input schema.{ 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.js:218-219 (registration)Dispatch case in the main tool request handler that routes 'get_flow' calls to the getFlow method.case 'get_flow': return await this.getFlow(args);