File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ export class McpResponse implements Response {
193193 const dialog = context . getDialog ( ) ;
194194 if ( dialog ) {
195195 response . push ( `# Open dialog
196- ${ dialog . type ( ) } : ${ dialog . message ( ) } (default value: ${ dialog . message ( ) } ).
196+ ${ dialog . type ( ) } : ${ dialog . message ( ) } (default value: ${ dialog . defaultValue ( ) } ).
197197Call ${ handleDialog . name } to handle it before continuing.` ) ;
198198 }
199199
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ Emulating: 4x slowdown`,
159159 } ) ;
160160 } ) ;
161161 page . evaluate ( ( ) => {
162- alert ( 'test ') ;
162+ prompt ( 'message' , 'default ') ;
163163 } ) ;
164164 await dialogPromise ;
165165 const result = await response . handle ( 'test' , context ) ;
@@ -168,7 +168,7 @@ Emulating: 4x slowdown`,
168168 result [ 0 ] . text ,
169169 `# test response
170170# Open dialog
171- alert : test (default value: test ).
171+ prompt : test (default value: default ).
172172Call handle_dialog to handle it before continuing.` ,
173173 ) ;
174174 } ) ;
You can’t perform that action at this time.
0 commit comments