Skip to main content
Glama
devskido

Playwright MCP Server

by devskido

playwright_go_back

Enables users to navigate backward in browser history during web automation tasks, facilitating seamless interaction with web pages in the Playwright MCP Server environment.

Instructions

Navigate back in browser history

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • GoBackTool.execute method: calls page.goBack() to navigate back in browser history, using safeExecute from base class.
    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: defines 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 toolHandler: switch case dispatches to goBackTool.execute.
    case "playwright_go_back": return await goBackTool.execute(args, context);
  • Instantiation of GoBackTool instance in initializeTools function.
    if (!goBackTool) goBackTool = new GoBackTool(server);
  • Listed in BROWSER_TOOLS array, used to trigger browser launch when needed.
    "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