Skip to content

Commit 13c3eea

Browse files
Merge pull request #141 from funwarioisii/fix-docs-client-call-tool
Update README.md about `client.callTool`
2 parents a2b7afd + e8bed12 commit 13c3eea

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)