browser_go_forward
Navigate forward to the next page in a browser instance managed by Concurrent Browser MCP. Use instance ID to control specific browser sessions for efficient multi-instance navigation.
Instructions
Go forward to the next page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instanceId | Yes | Instance ID |
Implementation Reference
- src/tools.ts:650-670 (handler)The private goForward method implements the core logic of the browser_go_forward tool. It retrieves the browser instance, calls page.goForward(), and returns success with current URL or error.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:136-149 (registration)Tool registration in the getTools() method's return array, defining the name, description, and input schema requiring instanceId.{ name: 'browser_go_forward', description: 'Go forward to the next page', inputSchema: { type: 'object', properties: { instanceId: { type: 'string', description: 'Instance ID' } }, required: ['instanceId'] } },
- src/tools.ts:527-528 (registration)Switch case in executeTools method that handles the tool invocation by calling the goForward handler.case 'browser_go_forward': return await this.goForward(args.instanceId);
- src/tools.ts:139-148 (schema)Input schema definition for the browser_go_forward tool, specifying the required instanceId parameter.inputSchema: { type: 'object', properties: { instanceId: { type: 'string', description: 'Instance ID' } }, required: ['instanceId'] }