Skip to main content
Glama
jomon003

PlayMCP Browser Automation Server

by jomon003

goForward

Navigate forward to the next page in browser history during web automation tasks, enabling sequential page browsing for testing or data collection workflows.

Instructions

Navigate forward to the next page in history

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function in PlaywrightController that executes the browser forward navigation using page.goForward() with error handling.
    async goForward(): Promise<void> { try { if (!this.isInitialized() || !this.state.page) { throw new Error('Browser not initialized'); } this.log('Going forward'); await this.state.page.goForward(); this.log('Forward navigation complete'); } catch (error: any) { console.error('Go forward error:', error); throw new BrowserError('Failed to go forward', 'Check if there is a next page in history'); } }
  • Tool schema definition for goForward, specifying no input parameters are required.
    const GO_FORWARD_TOOL: Tool = { name: "goForward", description: "Navigate forward to the next page in history", inputSchema: { type: "object", properties: {}, required: [] } };
  • src/server.ts:535-535 (registration)
    Registration of the goForward tool in the tools object provided to the MCP server capabilities.
    goForward: GO_FORWARD_TOOL,
  • Dispatch logic in the MCP callTool request handler that invokes the controller's goForward method and returns success response.
    case 'goForward': { await playwrightController.goForward(); return { content: [{ type: "text", text: "Navigated forward successfully" }] }; }

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/jomon003/PlayMCP'

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