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

Function getSelectedFieldNames

apps/sim/lib/core/utils/response-format.ts:180–187  ·  view source on GitHub ↗
(selectedOutputs: string[], blockId: string)

Source from the content-addressed store, hash-verified

178 * Get selected field names for a specific block from output IDs
179 */
180export function getSelectedFieldNames(selectedOutputs: string[], blockId: string): string[] {
181 return selectedOutputs
182 .filter((outputId) => {
183 const blockIdForOutput = extractBlockIdFromOutputId(outputId)
184 return blockIdForOutput === blockId && outputId.includes('_')
185 })
186 .map((outputId) => extractPathFromOutputId(outputId, blockId))
187}
188
189/**
190 * Internal helper to traverse an object path without parsing

Callers

nothing calls this directly

Calls 2

extractPathFromOutputIdFunction · 0.85

Tested by

no test coverage detected