Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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' }; }
  • Input schema for the 'reload' tool, which requires no parameters.
    inputSchema: { type: 'object', properties: {}, required: [] },
  • 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' }; } },
  • The SimpleBrowser.reload() helper method invoked by the tool handler, using Playwright's page.reload().
    async reload() { await this.ensureLaunched(); await this.page.reload(); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zypin-testing/zypin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server