browser_go_forward
Navigate forward to the next page in a browser instance when using the Concurrent Browser MCP server. This tool moves forward in the browsing history after going back.
Instructions
Go forward to the next page
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instanceId | Yes | Instance ID |
Implementation Reference
- src/tools.ts:650-670 (handler)The main handler function for the 'browser_go_forward' tool. It retrieves the browser instance and calls Playwright's page.goForward() method.
private async goForward(instanceId: string): Promise<ToolResult> { const instance = this.browserManager.getInstance(instanceId); if (!instance) { return { success: false, error: `Instance ${instanceId} not found` }; } try { await instance.page.goForward(); return { success: true, data: { url: instance.page.url() }, instanceId }; } catch (error) { return { success: false, error: `Go forward failed: ${error instanceof Error ? error.message : error}`, instanceId }; } } - src/tools.ts:527-528 (registration)The switch case in executeTools that routes calls to the goForward handler.
case 'browser_go_forward': return await this.goForward(args.instanceId); - src/tools.ts:136-149 (schema)The tool definition including name, description, and input schema, registered in getTools().
{ name: 'browser_go_forward', description: 'Go forward to the next page', inputSchema: { type: 'object', properties: { instanceId: { type: 'string', description: 'Instance ID' } }, required: ['instanceId'] } },