get_flow
Retrieve detailed information about a specific automation flow by providing its unique ID, enabling AI assistants to manage and execute workflows effectively within the HiveFlow platform.
Instructions
Obtiene detalles de un flujo específico
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | ID del flujo |
Input Schema (JSON Schema)
{
"properties": {
"flowId": {
"description": "ID del flujo",
"type": "string"
}
},
"required": [
"flowId"
],
"type": "object"
}
Implementation Reference
- src/index.js:652-664 (handler)The handler function for the 'get_flow' tool. It makes an API call to retrieve details of a specific flow by ID 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:90-103 (schema)Schema definition for the 'get_flow' tool, including name, description, and input schema requiring a 'flowId' string.{ 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)Registration/dispatch in the CallToolRequestHandler switch statement that maps 'get_flow' tool calls to the getFlow handler method.case 'get_flow': return await this.getFlow(args);