Repository navigation
Commit 1e91710
committed
fix(mcp): let addZoom take customScale without depth
addZoom's schema gave depth a default of 3. The MCP server, the in-app agent and
addZooms all parse the arguments through that schema before the tool runs, so a
call with customScale alone arrived with depth: 3 filled in, and the guard
against passing both levels refused it. A free level could only be set by adding
the zoom, then calling setZoom.
The default moves into the handler, where it applies only when neither level is
given.1 parent 3c9bd5d commit 1e91710
2 files changed
Lines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
3342 | 3343 | | |
3343 | 3344 | | |
3344 | 3345 | | |
| 3346 | + | |
| 3347 | + | |
| 3348 | + | |
| 3349 | + | |
| 3350 | + | |
| 3351 | + | |
| 3352 | + | |
| 3353 | + | |
| 3354 | + | |
| 3355 | + | |
| 3356 | + | |
| 3357 | + | |
| 3358 | + | |
| 3359 | + | |
| 3360 | + | |
| 3361 | + | |
| 3362 | + | |
3345 | 3363 | | |
3346 | 3364 | | |
3347 | 3365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
794 | | - | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
795 | 800 | | |
796 | 801 | | |
797 | 802 | | |
| |||
2897 | 2902 | | |
2898 | 2903 | | |
2899 | 2904 | | |
2900 | | - | |
| 2905 | + | |
2901 | 2906 | | |
2902 | 2907 | | |
2903 | 2908 | | |
| |||
0 commit comments