Skip to main content
Glama
devskido

Playwright MCP Server

by devskido

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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");
        });
      }
    }
  • Tool schema definition including 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: [],
      },
    },
  • Registration in the main tool handler switch case, dispatching to goBackTool.execute
    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 BROWSER_TOOLS array for conditional browser launching
    "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/devskido/customed-playwright'

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