playwright_go_forward
Navigate forward in browser history to revisit previously viewed pages during web automation tasks.
Instructions
Navigate forward in browser history
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/browser/navigation.ts:111-121 (handler)GoForwardTool class implements the core logic for the playwright_go_forward tool by calling page.goForward() on the Playwright page object.export class GoForwardTool extends BrowserToolBase { /** * Execute the go forward tool */ async execute(args: any, context: ToolContext): Promise<ToolResponse> { return this.safeExecute(context, async (page) => { await page.goForward(); return createSuccessResponse("Navigated forward in browser history"); }); } }
- src/tools.ts:378-386 (schema)Input schema definition for the playwright_go_forward tool, specifying no required parameters.{ name: "playwright_go_forward", description: "Navigate forward in browser history", inputSchema: { type: "object", properties: {}, required: [], }, },
- src/toolHandler.ts:541-543 (registration)Switch case in handleToolCall that registers and dispatches the playwright_go_forward tool call to GoForwardTool.execute.return await goBackTool.execute(args, context); case "playwright_go_forward": return await goForwardTool.execute(args, context);
- src/toolHandler.ts:343-344 (registration)Initialization of the GoForwardTool instance in initializeTools function.if (!goBackTool) goBackTool = new GoBackTool(server); if (!goForwardTool) goForwardTool = new GoForwardTool(server);
- src/tools.ts:467-468 (registration)Inclusion of playwright_go_forward in the BROWSER_TOOLS array for conditional browser launching."playwright_go_back", "playwright_go_forward",