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

Function getSuggestedSkillsForBlock

apps/sim/blocks/registry.ts:165–170  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

163 * the integration has no curated skills.
164 */
165export function getSuggestedSkillsForBlock(type: string): readonly SuggestedSkill[] {
166 const direct = getBlockMeta(type)?.skills
167 if (direct && direct.length > 0) return direct
168 const base = stripVersionSuffix(normalizeType(type))
169 return BLOCK_META_REGISTRY[base]?.skills ?? []
170}
171
172/**
173 * Raw block registry map keyed by block type. Prefer the typed accessors

Callers 1

IntegrationBlockDetailFunction · 0.90

Calls 3

stripVersionSuffixFunction · 0.90
getBlockMetaFunction · 0.85
normalizeTypeFunction · 0.85

Tested by

no test coverage detected