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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/browserTools.ts:88-105 (registration)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}`, }, ], }; } });
- src/utils/helpers.ts:18-27 (helper)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; }