reload
Refresh the current web page to reload content, update dynamic elements, or retry failed requests during browser automation.
Instructions
Reload the current page
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "reload"
}
}Input 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(); }