docs: fix React UI tool call example
This commit is contained in:
parent
192d29f2ba
commit
40e0fdf685
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ export function McpClientApp() {
|
||||||
try {
|
try {
|
||||||
const result = await app.callServerTool({
|
const result = await app.callServerTool({
|
||||||
name: "get-weather",
|
name: "get-weather",
|
||||||
arguments: { city: "Tokyo" },
|
arguments: { location: "Tokyo" },
|
||||||
});
|
});
|
||||||
setMessages((prev) => [
|
setMessages((prev) => [
|
||||||
...prev,
|
...prev,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue