We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40e1753 commit 9a7f350Copy full SHA for 9a7f350
1 file changed
src/tools/pages.ts
@@ -112,6 +112,7 @@ export const navigatePage = defineTool({
112
'Navigate the page by URL, back or forward in history, or reload.',
113
),
114
url: zod.string().optional().describe('Target URL (only type=url)'),
115
+ ignoreCache: zod.boolean().optional().describe('Whether to ignore cache on reload.'),
116
...timeoutSchema,
117
},
118
handler: async (request, response, context) => {
@@ -171,7 +172,10 @@ export const navigatePage = defineTool({
171
172
break;
173
case 'reload':
174
try {
- await page.reload(options);
175
+ await page.reload({
176
+ ...options,
177
+ ignoreCache: request.params.ignoreCache,
178
+ });
179
response.appendResponseLine(`Successfully reloaded the page.`);
180
} catch (error) {
181
response.appendResponseLine(
0 commit comments