Update README.md about client.callTool

This commit is contained in:
funwarioisii 2025-01-27 17:20:24 +09:00
commit e8bed12b6d

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