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

Function addressToPath

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

Source from the content-addressed store, hash-verified

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