(blocks: Record<string, unknown>)
| 113 | * Generate MCP tool parameter schema from workflow blocks. |
| 114 | */ |
| 115 | export function generateSchemaFromBlocks(blocks: Record<string, unknown>): Record<string, unknown> { |
| 116 | const inputFormat = extractInputFormatFromBlocks(blocks) |
| 117 | if (!inputFormat || inputFormat.length === 0) { |
| 118 | return EMPTY_SCHEMA |
| 119 | } |
| 120 | return { ...generateToolInputSchema(inputFormat) } |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * Load a workflow's active deployed state and generate its MCP parameter schema. |
no test coverage detected