Skip to content

Commit

Permalink
Merge pull request #141 from funwarioisii/fix-docs-client-call-tool
Browse files Browse the repository at this point in the history
Update README.md about `client.callTool`
  • Loading branch information
jspahrsummers authored Jan 27, 2025
2 parents a2b7afd + e8bed12 commit 13c3eea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
});
```

Expand Down

0 comments on commit 13c3eea

Please sign in to comment.