Skip to main content
Glama

playwright_go_back

Navigate back in browser history during automated testing to verify page transitions and user flow functionality.

Instructions

Navigate back in browser history

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The GoBackTool.execute method 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"); }); } }
  • 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 in the main tool handler switch statement that dispatches calls to the GoBackTool instance.
    case "playwright_go_back": return await goBackTool.execute(args, context);
  • Instantiation of the GoBackTool class instance used for handling tool calls.
    if (!goBackTool) goBackTool = new GoBackTool(server);
  • Import of the GoBackTool 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/aakashH242/mcp-playwright'

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