Unified · Split
| @@ -42,7 +42,7 @@ const executor = await createExecutor({ onElicitation: "accept-all" }); · 41 unmodified lines | ||
| 42 | 42 | const tools = await executor.tools.list(); |
| 43 | 43 | const target = tools[0]; |
| 44 | 44 | if (target) { |
| 45 | − const result = await executor.tools.invoke(target.id, { | |
| 45 | + const result = await executor.tools.invoke(target.address, { | |
| 46 | 46 | /* args matching target.inputSchema */ |
| 47 | 47 | }); |
| 48 | 48 | console.log(result); |
| @@ -54,7 +54,7 @@ await executor.close(); · 5 unmodified lines | ||
| 54 | 54 | 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): |
| 55 | 55 | |
| 56 | 56 | ```ts |
| 57 | −await executor.tools.invoke(target.id, args, { | |
| 57 | +await executor.tools.invoke(target.address, args, { | |
| 58 | 58 | onElicitation: customHandler, |
| 59 | 59 | }); |
| 60 | 60 | ``` |