Update README.md about client.callTool
This commit is contained in:
parent
87197fb4a7
commit
e8bed12b6d
1 changed files with 5 additions and 2 deletions
|
|
@ -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"
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue