From e8bed12b6df8022fc06cb56638275a786dd62cd8 Mon Sep 17 00:00:00 2001 From: funwarioisii Date: Mon, 27 Jan 2025 17:20:24 +0900 Subject: [PATCH] Update README.md about `client.callTool` --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8cfcfcae..98c70848 100644 --- a/README.md +++ b/README.md @@ -470,8 +470,11 @@ const resources = await client.listResources(); const resource = await client.readResource("file:///example.txt"); // Call a tool -const result = await client.callTool("example-tool", { - arg1: "value" +const result = await client.callTool({ + name: "example-tool", + arguments: { + arg1: "value" + } }); ```