Skip to content

Commit 9a7f350

Browse files
committed
feat: ignore cache on reload
1 parent 40e1753 commit 9a7f350

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/tools/pages.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)