playwright_go_back
Navigate back in the browser's history to interact with previously visited pages, enabling efficient web testing and automation workflows.
Instructions
Navigate back in browser history
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/browser/navigation.ts:96-106 (handler)The GoBackTool class provides the execute method, which is the core handler for the 'playwright_go_back' tool. It safely executes page.goBack() on the browser page.export class GoBackTool extends BrowserToolBase { /** * Execute the go back tool */ async execute(args: any, context: ToolContext): Promise<ToolResponse> { return this.safeExecute(context, async (page) => { await page.goBack(); return createSuccessResponse("Navigated back in browser history"); }); } }
- src/tools.ts:369-377 (schema)The input schema and metadata definition for the 'playwright_go_back' tool, including name and description.{ name: "playwright_go_back", description: "Navigate back in browser history", inputSchema: { type: "object", properties: {}, required: [], }, },
- src/toolHandler.ts:540-541 (registration)Registration in the main tool dispatch switch statement, routing calls to the GoBackTool handler.case "playwright_go_back": return await goBackTool.execute(args, context);
- src/toolHandler.ts:343-343 (registration)Instantiation of the GoBackTool instance during tool initialization.if (!goBackTool) goBackTool = new GoBackTool(server);
- src/tools.ts:467-467 (registration)Inclusion in the BROWSER_TOOLS array for conditional browser setup."playwright_go_back",