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

Function findOperationDropdown

apps/sim/lib/search/tool-operations.ts:82–88  ·  view source on GitHub ↗

* Extracts the operation dropdown subblock from a block's configuration. * Returns null if no operation dropdown exists.

(block: BlockConfig)

Source from the content-addressed store, hash-verified

80 * Returns null if no operation dropdown exists.
81 */
82function findOperationDropdown(block: BlockConfig): SubBlockConfig | null {
83 return (
84 block.subBlocks.find(
85 (sb) => sb.id === 'operation' && sb.type === 'dropdown' && Array.isArray(sb.options)
86 ) ?? null
87 )
88}
89
90/**
91 * Resolves the tool ID for a given operation using the block's tool config.

Callers 1

buildToolOperationsIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected