MCPcopy
hub / github.com/simstudioai/sim / getAllBlocks

Function getAllBlocks

apps/sim/blocks/registry.ts:25–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24/** All block configs. */
25export function getAllBlocks(): BlockConfig[] {
26 return Object.values(BLOCK_REGISTRY)
27}
28
29/** Find the block whose `tools.access` contains the given tool id. */
30export function getBlockByToolName(toolName: string): BlockConfig | undefined {

Callers 15

store.tsFile · 0.90
getAllTriggerBlocksFunction · 0.90
getTriggersForSidebarFunction · 0.90
context.test.tsFile · 0.90
buildToolOperationsIndexFunction · 0.90
executeFunction · 0.90
createBlockFromParamsFunction · 0.90
getStaticComponentFilesFunction · 0.90
blocks.test.tsFile · 0.90
getIconColorMapFunction · 0.90
hasMultipleOperationsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected