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

Function buildToolAccessExpression

apps/cli/src/tooling.ts:118–124  ·  view source on GitHub ↗
(toolPath: string)

Source from the content-addressed store, hash-verified

116};
117
118const buildToolAccessExpression = (toolPath: string): string => {
119 const segments = toToolPathSegments([toolPath]);
120 if (segments.length === 0) {
121 throw new Error("Tool path must include at least one segment");
122 }
123 return segments.map((segment) => `[${JSON.stringify(segment)}]`).join("");
124};
125
126export const parseJsonObjectInput = (
127 raw: string | undefined,

Callers 1

buildInvokeToolCodeFunction · 0.85

Calls 1

toToolPathSegmentsFunction · 0.85

Tested by

no test coverage detected