reload
Refresh the current web page to reload content, update dynamic elements, or retry failed requests during browser automation.
Instructions
Reload the current page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- tools-playwright.js:66-69 (handler)The handler function for the 'reload' MCP tool. It calls the browser's reload method and returns a success response.handler: async () => { await browser.reload(); return { success: true, message: 'Page reloaded' }; }
- tools-playwright.js:61-65 (schema)Input schema for the 'reload' tool, which requires no parameters.inputSchema: { type: 'object', properties: {}, required: [] },
- tools-playwright.js:58-70 (registration)Registration of the 'reload' tool object within the createPlaywrightTools function's return array.{ name: 'reload', description: 'Reload the current page', inputSchema: { type: 'object', properties: {}, required: [] }, handler: async () => { await browser.reload(); return { success: true, message: 'Page reloaded' }; } },
- browser.js:79-82 (helper)The SimpleBrowser.reload() helper method invoked by the tool handler, using Playwright's page.reload().async reload() { await this.ensureLaunched(); await this.page.reload(); }