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

Function callTool

scripts/agent-config-smoke.ts:95–104  ·  view source on GitHub ↗
(ctx: CliContext, path: readonly string[], args: unknown = {})

Source from the content-addressed store, hash-verified

93};
94
95const callTool = (ctx: CliContext, path: readonly string[], args: unknown = {}) =>
96 runCli(ctx, [
97 "call",
98 ...path,
99 JSON.stringify(args),
100 "--base-url",
101 ctx.baseUrl,
102 "--scope",
103 ctx.scopeDir,
104 ]);
105
106const approvePausedCall = async (ctx: CliContext, paused: CliResult): Promise<CliResult> => {
107 const executionId = extractExecutionId(paused.text);

Callers 4

callToolFixtureResponseFunction · 0.85
createSecretPlaceholderFunction · 0.85
runSmokeFunction · 0.85

Calls 1

runCliFunction · 0.85

Tested by 1

callToolFixtureResponseFunction · 0.68