Skip to main content
Glama

playwright_go_back

Simulate browser back button functionality to navigate to the previous page in the browsing history using Playwright MCP Server.

Instructions

Navigate back in browser history

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "required": [], "type": "object" }

Implementation Reference

  • The GoBackTool class implements the core logic for the 'playwright_go_back' tool by calling page.goBack() on the Playwright page instance.
    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"); }); } }
  • The input schema definition for the 'playwright_go_back' tool, specifying no required parameters.
    { name: "playwright_go_back", description: "Navigate back in browser history", inputSchema: { type: "object", properties: {}, required: [], }, },
  • Registration and dispatch in the main tool handler switch statement, routing calls to the GoBackTool instance.
    case "playwright_go_back": return await goBackTool.execute(args, context);
  • Instantiation of the GoBackTool instance during tool initialization.
    if (!goBackTool) goBackTool = new GoBackTool(server);
  • Import of the GoBackTool class from its implementation file.
    import { GoBackTool, GoForwardTool } from "./tools/browser/navigation.js";

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pvinis/mcp-playwright-stealth'

If you have feedback or need assistance with the MCP directory API, please join our Discord server