MCPcopy Create free account
hub / github.com/TanStack/ai / callTool

Method callTool

packages/ai-mcp/src/client.ts:212–218  ·  view source on GitHub ↗
(
    name: string,
    args?: Record<string, unknown>,
  )

Source from the content-addressed store, hash-verified

210 }
211
212 async callTool(
213 name: string,
214 args?: Record<string, unknown>,
215 ): Promise<Awaited<ReturnType<Client['callTool']>>> {
216 if (this.#closed) throw new MCPConnectionError('MCP client is closed')
217 return this.#client.callTool({ name, arguments: args ?? {} })
218 }
219
220 async close(): Promise<void> {
221 if (this.#closed) return

Callers 10

handleBridgeJsonRpcFunction · 0.80
buildMcpServerFunction · 0.80
MCPAppResourceFunction · 0.80
MCPAppResourceFunction · 0.80
makeMcpExecuteFunction · 0.80
createMcpAppCallHandlerFunction · 0.80
client.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected