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

Function addressToPath

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

Source from the content-addressed store, hash-verified

72/** Strip the proxy-root `tools.` prefix from a full address so it becomes the
73 * sandbox-callable path the model writes after `tools.`. */
74const addressToPath = (address: string): string =>
75 address.startsWith(ADDRESS_PREFIX) ? address.slice(ADDRESS_PREFIX.length) : address;
76
77type DescribedTool = {
78 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