Merge pull request #141 from funwarioisii/fix-docs-client-call-tool

Update README.md about `client.callTool`
This commit is contained in:
Justin Spahr-Summers 2025-01-27 11:20:24 +00:00 • committed by GitHub
commit 13c3eea3b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"
}
});
```