playwright_go_back
Enables users to navigate backward in browser history during web automation tasks, facilitating seamless interaction with web pages in the Playwright MCP Server environment.
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)GoBackTool.execute method: calls page.goBack() to navigate back in browser history, using safeExecute from base class.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)Tool schema: defines name, description, and empty input schema for playwright_go_back.{ name: "playwright_go_back", description: "Navigate back in browser history", inputSchema: { type: "object", properties: {}, required: [], }, },
- src/toolHandler.ts:540-541 (registration)Registration in toolHandler: switch case dispatches to goBackTool.execute.case "playwright_go_back": return await goBackTool.execute(args, context);
- src/toolHandler.ts:343-343 (registration)Instantiation of GoBackTool instance in initializeTools function.if (!goBackTool) goBackTool = new GoBackTool(server);
- src/tools.ts:467-467 (helper)Listed in BROWSER_TOOLS array, used to trigger browser launch when needed."playwright_go_back",