Skip to content

PersistentAI API Documentation / @persistentai/fireflow-nodes / extractTemplateVariables

Function: extractTemplateVariables()

extractTemplateVariables(headers): Map<string, boolean>

Defined in: packages/fireflow-nodes/src/nodes/mcp/utils.ts:39

Extract unique template variables from MCP server headers

Parameters

headers

object[]

Array of headers with template syntax

Returns

Map<string, boolean>

Map of variable names to required flags

Licensed under BUSL-1.1