Skip to main content
Glama
devskido

Playwright MCP Server

by devskido

playwright_go_forward

Navigate forward in browser history to revisit previously viewed pages during web automation tasks.

Instructions

Navigate forward in browser history

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • GoForwardTool class implements the core logic for the playwright_go_forward tool by calling page.goForward() on the Playwright page object.
    export class GoForwardTool extends BrowserToolBase { /** * Execute the go forward tool */ async execute(args: any, context: ToolContext): Promise<ToolResponse> { return this.safeExecute(context, async (page) => { await page.goForward(); return createSuccessResponse("Navigated forward in browser history"); }); } }
  • Input schema definition for the playwright_go_forward tool, specifying no required parameters.
    { name: "playwright_go_forward", description: "Navigate forward in browser history", inputSchema: { type: "object", properties: {}, required: [], }, },
  • Switch case in handleToolCall that registers and dispatches the playwright_go_forward tool call to GoForwardTool.execute.
    return await goBackTool.execute(args, context); case "playwright_go_forward": return await goForwardTool.execute(args, context);
  • Initialization of the GoForwardTool instance in initializeTools function.
    if (!goBackTool) goBackTool = new GoBackTool(server); if (!goForwardTool) goForwardTool = new GoForwardTool(server);
  • src/tools.ts:467-468 (registration)
    Inclusion of playwright_go_forward in the BROWSER_TOOLS array for conditional browser launching.
    "playwright_go_back", "playwright_go_forward",

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