Commit 571c215
fix(registerTool): output validation, title in tools/list, outputSchema emission
- Output schema validation no longer returns parseResult.data (the
validated structuredContent alone) instead of the full CallToolResult.
- tools/list now includes the tool title field.
- outputSchema is only emitted when the tool defines one (previously
always emitted a placeholder { type: "object", properties: {} }).
- Remove unused Request/Result imports.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent d4083ab commit 571c215
1 file changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
| |||
387 | 385 | | |
388 | 386 | | |
389 | 387 | | |
390 | | - | |
391 | 388 | | |
392 | 389 | | |
393 | 390 | | |
| |||
433 | 430 | | |
434 | 431 | | |
435 | 432 | | |
| 433 | + | |
436 | 434 | | |
437 | 435 | | |
438 | 436 | | |
439 | 437 | | |
440 | 438 | | |
441 | 439 | | |
442 | 440 | | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
450 | 447 | | |
451 | 448 | | |
452 | 449 | | |
| |||
0 commit comments