MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / addressToPath

Function addressToPath

packages/core/execution/src/tool-invoker.ts:70–71  ·  view source on GitHub ↗
(address: string)

Source from the content-addressed store, hash-verified

68/** Strip the proxy-root `tools.` prefix from a full address so it becomes the
69 * sandbox-callable path the model writes after `tools.`. */
70const addressToPath = (address: string): string =>
71 address.startsWith(ADDRESS_PREFIX) ? address.slice(ADDRESS_PREFIX.length) : address;
72
73type DescribedTool = {
74 readonly path: string;

Callers 4

expectedToolFailureFunction · 0.85
extractNamespaceFunction · 0.85
makeExecutorToolInvokerFunction · 0.85
toSearchableToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected