Skip to main content
Glama

browser_navigate_forward

Navigate forward in the browser to return to the next page in the browsing history after using the back button.

Instructions

Navigate forward in the browser

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration and inline handler for the 'browser_navigate_forward' tool. It retrieves the current WebDriver instance from the state manager and calls navigate().forward() to navigate forward in the browser history, returning a success or error message.
    server.tool('browser_navigate_forward', 'Navigate forward in the browser', {}, async () => { try { const driver = stateManager.getDriver(); await driver.navigate().forward(); return { content: [{ type: 'text', text: `Navigated forward` }], }; } catch (e) { return { content: [ { type: 'text', text: `Error navigating forward: ${(e as Error).message}`, }, ], }; } });
  • StateManager.getDriver() method used by the tool handler to retrieve the current WebDriver instance for navigation.
    getDriver(): WebDriver { if (!this.state.currentSession) { throw new Error('No active browser session'); } const driver = this.state.drivers.get(this.state.currentSession); if (!driver) { throw new Error('No active browser session'); } return driver; }

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/pshivapr/selenium-mcp'

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