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

Function extractToolsAccessFromContent

scripts/generate-docs.ts:1333–1337  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

1331}
1332
1333function extractToolsAccessFromContent(content: string): string[] {
1334 const accessMatch = content.match(/access\s*:\s*\[\s*([^\]]+)\s*\]/)
1335 if (!accessMatch) return []
1336 return [...accessMatch[1].matchAll(/['"]([^'"]+)['"]/g)].map((m) => m[1])
1337}
1338
1339/**
1340 * Get the tool prefix (service name) from a tool name.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected