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

Method callTool

client-sdks/client-js/src/resources/mcp.ts:157–163  ·  view source on GitHub ↗

* 调用 MCP 工具 * @param request 工具调用请求 * @returns 调用响应

(request: MCPToolCallRequest)

Source from the content-addressed store, hash-verified

155 * @returns 调用响应
156 */
157 async callTool(request: MCPToolCallRequest): Promise<MCPToolCallResponse> {
158 return this.request<MCPToolCallResponse>("/v1/mcp/tools/call", {
159 method: "POST",
160 body: request,
161 timeout: request.timeout,
162 });
163 }
164
165 /**
166 * 调用 MCP 工具(便捷方法)

Callers 1

callMethod · 0.95

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected