goForward
Navigate forward to the next page in browser history during web automation tasks, enabling sequential page browsing for testing or data collection workflows.
Instructions
Navigate forward to the next page in history
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/controllers/playwright.ts:605-617 (handler)Core handler function in PlaywrightController that executes the browser forward navigation using page.goForward() with error handling.async goForward(): Promise<void> { try { if (!this.isInitialized() || !this.state.page) { throw new Error('Browser not initialized'); } this.log('Going forward'); await this.state.page.goForward(); this.log('Forward navigation complete'); } catch (error: any) { console.error('Go forward error:', error); throw new BrowserError('Failed to go forward', 'Check if there is a next page in history'); } }
- src/server.ts:260-268 (schema)Tool schema definition for goForward, specifying no input parameters are required.const GO_FORWARD_TOOL: Tool = { name: "goForward", description: "Navigate forward to the next page in history", inputSchema: { type: "object", properties: {}, required: [] } };
- src/server.ts:535-535 (registration)Registration of the goForward tool in the tools object provided to the MCP server capabilities.goForward: GO_FORWARD_TOOL,
- src/server.ts:788-793 (helper)Dispatch logic in the MCP callTool request handler that invokes the controller's goForward method and returns success response.case 'goForward': { await playwrightController.goForward(); return { content: [{ type: "text", text: "Navigated forward successfully" }] }; }