reload
Refresh the current web page to test consent management platforms and rules in a browser automation environment.
Instructions
Reload the current page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:220-231 (handler)Handler logic for the 'reload' tool within the handleToolCall switch statement. Reloads the current browser page using Puppeteer and returns a success 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:35-39 (schema)Input schema definition for the 'reload' tool, specifying an empty object with no required properties.inputSchema: { type: "object", properties: {}, required: [], },
- src/index.ts:32-40 (registration)Registration of the 'reload' tool in the TOOLS array, which is served via the MCP ListTools handler.{ name: "reload", description: "Reload the current page", inputSchema: { type: "object", properties: {}, required: [], }, },