MCPcopy Index your code
hub / github.com/simstudioai/sim / extractBlockIdFromOutputId

Function extractBlockIdFromOutputId

apps/sim/lib/core/utils/response-format.ts:135–137  ·  view source on GitHub ↗
(outputId: string)

Source from the content-addressed store, hash-verified

133 * Handles both formats: "blockId" and "blockId_path" or "blockId.path"
134 */
135export function extractBlockIdFromOutputId(outputId: string): string {
136 return outputId.includes('_') ? outputId.split('_')[0] : outputId.split('.')[0]
137}
138
139/**
140 * Extract path from output ID after the block ID

Callers 6

extractOutputFromLogsFunction · 0.90
extractFieldValuesFunction · 0.85
getSelectedFieldNamesFunction · 0.85
onBlockCompleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected