playwright_go_forward
Navigate forward in browser history to revisit previously viewed pages. Use this tool in browser automation workflows for efficient web navigation 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)The GoForwardTool class implements the core logic for the playwright_go_forward tool by invoking page.goForward() on the Playwright page instance.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:379-386 (schema)Defines the tool's metadata including name, description, and input schema (empty as no parameters required).name: "playwright_go_forward", description: "Navigate forward in browser history", inputSchema: { type: "object", properties: {}, required: [], }, },
- src/toolHandler.ts:542-543 (registration)Registers the tool handler by dispatching calls to the GoForwardTool instance in the main tool switch statement.case "playwright_go_forward": return await goForwardTool.execute(args, context);
- src/toolHandler.ts:344-344 (registration)Instantiates the GoForwardTool instance for use in handling tool calls.if (!goForwardTool) goForwardTool = new GoForwardTool(server);
- src/tools.ts:468-468 (registration)Includes the tool in the BROWSER_TOOLS array, which determines browser launch requirements."playwright_go_forward",