Skip to content

Commit 492deed

Browse files
docs(sdk): use tool.address in invoke examples
1 parent fff7ed6 commit 492deed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/core/sdk/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const executor = await createExecutor({ onElicitation: "accept-all" });
4242
const tools = await executor.tools.list();
4343
const target = tools[0];
4444
if (target) {
45-
const result = await executor.tools.invoke(target.id, {
45+
const result = await executor.tools.invoke(target.address, {
4646
/* args matching target.inputSchema */
4747
});
4848
console.log(result);
@@ -54,7 +54,7 @@ await executor.close();
5454
Pass an `options` object only if you need to override the executor-level handler for a single call (rare — typically used by hosts that bridge per-client elicitation channels):
5555

5656
```ts
57-
await executor.tools.invoke(target.id, args, {
57+
await executor.tools.invoke(target.address, args, {
5858
onElicitation: customHandler,
5959
});
6060
```

0 commit comments

Comments
 (0)