browser_navigate_back
Navigate to the previous page in the browser history during automated web interactions. Use this tool to go back to prior web pages when testing or automating browser workflows.
Instructions
Navigate back in the browser
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/browserTools.ts:69-86 (handler)Inline handler and registration for the 'browser_navigate_back' tool. Retrieves the browser driver and executes navigate().back() to go back in the browser history, with error handling.server.tool('browser_navigate_back', 'Navigate back in the browser', {}, async () => { try { const driver = stateManager.getDriver(); await driver.navigate().back(); return { content: [{ type: 'text', text: `Navigated back` }], }; } catch (e) { return { content: [ { type: 'text', text: `Error navigating back: ${(e as Error).message}`, }, ], }; } });
- src/tools/index.ts:9-9 (registration)Calls registerBrowserTools which registers the browser_navigate_back tool among others.registerBrowserTools(server, stateManager);
- src/server.ts:55-55 (registration)Top-level call to registerAllTools, which indirectly registers the browser_navigate_back tool.registerAllTools(this.server, this.stateManager);