playwright_go_back
Navigate back in browser history during web automation tasks to return to previous pages.
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 class implementing the execute method for playwright_go_back tool, which calls page.goBack()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:370-377 (schema)Tool schema definition including name, description, and empty input schema for playwright_go_backname: "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 handler switch case, dispatching to goBackTool.executecase "playwright_go_back": return await goBackTool.execute(args, context);
- src/toolHandler.ts:343-343 (registration)Instantiation of the goBackTool instance during tool initializationif (!goBackTool) goBackTool = new GoBackTool(server);
- src/tools.ts:467-467 (registration)Inclusion in BROWSER_TOOLS array for conditional browser launching"playwright_go_back",