MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / execute

Function execute

ui/src/api/tools.ts:43–49  ·  view source on GitHub ↗
(name: string, input: Record<string, unknown>)

Source from the content-addressed store, hash-verified

41 },
42
43 async execute(name: string, input: Record<string, unknown>): Promise<ExecuteResult> {
44 return fetchJson(`/api/tools/${encodeURIComponent(name)}/execute`, {
45 method: 'POST',
46 headers,
47 body: JSON.stringify(input),
48 })
49 },
50}

Callers 1

createToolsRoutesFunction · 0.85

Calls 1

fetchJsonFunction · 0.90

Tested by

no test coverage detected