MCPcopy Create free account
hub / github.com/astercloud/aster / execute

Method execute

client-sdks/client-js/src/resources/tool.ts:94–99  ·  view source on GitHub ↗

* 执行工具(同步) * @param toolId 工具 ID * @param input 参数 * @returns 执行结果

(toolId: string, input: Record<string, any>)

Source from the content-addressed store, hash-verified

92 * @returns 执行结果
93 */
94 async execute(toolId: string, input: Record<string, any>): Promise<any> {
95 return this.request(`/v1/tools/${toolId}/execute`, {
96 method: "POST",
97 body: { input },
98 });
99 }
100
101 /**
102 * 执行工具(异步,用于长时运行工具)

Callers 4

mainFunction · 0.95
client.test.tsFile · 0.45
mainFunction · 0.45

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected