Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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"); }); } }
  • 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: [], }, },
  • Registration in the main tool dispatch switch statement, routing calls to the GoBackTool handler.
    case "playwright_go_back": return await goBackTool.execute(args, context);
  • 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",

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/executeautomation/mcp-playwright'

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