@@ -655,7 +655,7 @@ describe("App <-> AppBridge integration", () => {
655655 sendRequest : async ( ) => ( { } ) ,
656656 } as any ;
657657
658- await expect ( ( tool . callback as any ) ( mockExtra ) ) . rejects . toThrow (
658+ await expect ( ( tool . handler as any ) ( mockExtra ) ) . rejects . toThrow (
659659 "Tool test-tool is disabled" ,
660660 ) ;
661661 } ) ;
@@ -683,12 +683,12 @@ describe("App <-> AppBridge integration", () => {
683683
684684 // Valid input should work
685685 await expect (
686- ( tool . callback as any ) ( { name : "Alice" } , mockExtra ) ,
686+ ( tool . handler as any ) ( { name : "Alice" } , mockExtra ) ,
687687 ) . resolves . toBeDefined ( ) ;
688688
689689 // Invalid input should fail
690690 await expect (
691- ( tool . callback as any ) ( { invalid : "field" } , mockExtra ) ,
691+ ( tool . handler as any ) ( { invalid : "field" } , mockExtra ) ,
692692 ) . rejects . toThrow ( "Invalid input for tool greet" ) ;
693693 } ) ;
694694
@@ -715,7 +715,7 @@ describe("App <-> AppBridge integration", () => {
715715 } as any ;
716716
717717 // Valid output should work
718- await expect ( ( tool . callback as any ) ( mockExtra ) ) . resolves . toBeDefined ( ) ;
718+ await expect ( ( tool . handler as any ) ( mockExtra ) ) . resolves . toBeDefined ( ) ;
719719 } ) ;
720720
721721 it ( "tool enable/disable/update/remove trigger sendToolListChanged" , async ( ) => {
@@ -856,7 +856,7 @@ describe("App <-> AppBridge integration", () => {
856856
857857 app . oncalltool = async ( params , extra ) => {
858858 if ( params . name === "greet" ) {
859- return await ( tool . callback as any ) ( params . arguments || { } , extra ) ;
859+ return await ( tool . handler as any ) ( params . arguments || { } , extra ) ;
860860 }
861861 throw new Error ( `Unknown tool: ${ params . name } ` ) ;
862862 } ;
0 commit comments