File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ export const navigatePage = defineTool({
112112        'Navigate the page by URL, back or forward in history, or reload.' , 
113113      ) , 
114114    url : zod . string ( ) . optional ( ) . describe ( 'Target URL (only type=url)' ) , 
115+     ignoreCache : zod . boolean ( ) . optional ( ) . describe ( 'Whether to ignore cache on reload.' ) , 
115116    ...timeoutSchema , 
116117  } , 
117118  handler : async  ( request ,  response ,  context )  =>  { 
@@ -171,7 +172,10 @@ export const navigatePage = defineTool({
171172          break ; 
172173        case  'reload' :
173174          try  { 
174-             await  page . reload ( options ) ; 
175+             await  page . reload ( { 
176+               ...options , 
177+               ignoreCache : request . params . ignoreCache , 
178+             } ) ; 
175179            response . appendResponseLine ( `Successfully reloaded the page.` ) ; 
176180          }  catch  ( error )  { 
177181            response . appendResponseLine ( 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments