This repository was archived by the owner on Apr 30, 2026. It is now read-only.
Commit 2304c3e
Fix screenshot tool return type for FastMCP compatibility
FastMCP/Pydantic can't serialize Image | str union type.
Use Image return type and raise exceptions for errors instead.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4a5a3dd commit 2304c3e
1 file changed
Lines changed: 7 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
| 442 | + | |
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
| 458 | + | |
462 | 459 | | |
463 | 460 | | |
464 | 461 | | |
465 | 462 | | |
466 | 463 | | |
467 | 464 | | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
473 | 469 | | |
474 | 470 | | |
475 | 471 | | |
476 | 472 | | |
477 | 473 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
| 474 | + | |
483 | 475 | | |
484 | 476 | | |
485 | 477 | | |
| |||
0 commit comments