playwright_go_forward
Navigate forward in browser history to revisit previously viewed pages within Playwright MCP Server's real browser environment, enabling continuous web interaction and testing.
Instructions
Navigate forward in browser history
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"required": [],
"type": "object"
}
Implementation Reference
- src/tools/browser/navigation.ts:111-121 (handler)The GoForwardTool class provides the core handler logic for the 'playwright_go_forward' tool, executing 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:344-352 (schema)Defines the tool name, description, and input schema (no required parameters) for 'playwright_go_forward'.{ name: "playwright_go_forward", description: "Navigate forward in browser history", inputSchema: { type: "object", properties: {}, required: [], }, },
- src/toolHandler.ts:520-521 (registration)Registers and dispatches the 'playwright_go_forward' tool call to the GoForwardTool instance's execute method in the main tool handling switch statement.case "playwright_go_forward": return await goForwardTool.execute(args, context);