reload
Initiate a page reload in the browser to refresh the current web page, useful for testing Autoconsent rules or resetting interactions in a real browser environment.
Instructions
Reload the current page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:220-231 (handler)The handler function for the 'reload' tool. It reloads the current browser page using puppeteer and returns a confirmation message with the current URL.case "reload": await page.reload({ waitUntil: "domcontentloaded" }); const currentUrl = page.url(); return { content: [ { type: "text", text: `Reloaded page: ${currentUrl}`, }, ], isError: false, };
- src/index.ts:32-40 (registration)Registration of the 'reload' tool in the TOOLS array, including name, description, and empty input schema (no parameters required).{ name: "reload", description: "Reload the current page", inputSchema: { type: "object", properties: {}, required: [], }, },
- src/index.ts:35-39 (schema)Input schema for the 'reload' tool, defining an empty object (no required parameters).inputSchema: { type: "object", properties: {}, required: [], },