Skip to content

Commit 3dd9729

Browse files
committed
Update README.md about client.callTool
1 parent 07c1d7f commit 3dd9729

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,11 @@ const resources = await client.listResources();
470470
const resource = await client.readResource("file:///example.txt");
471471

472472
// Call a tool
473-
const result = await client.callTool("example-tool", {
474-
arg1: "value"
473+
const result = await client.callTool({
474+
name: "example-tool",
475+
arguments: {
476+
arg1: "value"
477+
}
475478
});
476479
```
477480

0 commit comments

Comments
 (0)