Skip to main content
Glama
cloudflare

Cloudflare Playwright MCP

Official
by cloudflare

browser_navigate_forward

Navigate forward to the next page in a web browser using automated browser testing with Playwright and Cloudflare Workers integration, enabling AI assistants to control browser actions.

Instructions

Go forward to the next page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler logic for the 'browser_navigate_forward' tool. It retrieves the current tab and executes page.goForward() to navigate forward in the browser history.
    handle: async context => { const tab = context.currentTabOrDie(); await tab.page.goForward(); const code = [ `// Navigate forward`, `await page.goForward();`, ]; return { code, captureSnapshot, waitForNetwork: false, }; },
  • Input schema and metadata for the 'browser_navigate_forward' tool, defined using Zod. No parameters required.
    schema: { name: 'browser_navigate_forward', title: 'Go forward', description: 'Go forward to the next page', inputSchema: z.object({}), type: 'readOnly', },
  • src/tools.ts:35-50 (registration)
    Registers the browser_navigate_forward tool (via spread of navigate(true)) in the snapshotTools array for standard mode.
    export const snapshotTools: Tool<any>[] = [ ...common(true), ...console, ...dialogs(true), ...files(true), ...install, ...keyboard(true), ...navigate(true), ...network, ...pdf, ...screenshot, ...snapshot, ...tabs(true), ...testing, ...wait(true), ];
  • src/tools.ts:52-66 (registration)
    Registers the browser_navigate_forward tool (via spread of navigate(false)) in the visionTools array for vision mode.
    export const visionTools: Tool<any>[] = [ ...common(false), ...console, ...dialogs(false), ...files(false), ...install, ...keyboard(false), ...navigate(false), ...network, ...pdf, ...tabs(false), ...testing, ...vision, ...wait(false), ];
  • Final registration of tools including browser_navigate_forward into the MCP server context based on config.vision, filtering by capabilities.
    const allTools = config.vision ? visionTools : snapshotTools; const tools = allTools.filter(tool => !config.capabilities || tool.capability === 'core' || config.capabilities.includes(tool.capability)); const context = new Context(tools, config, browserContextFactory);

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/cloudflare/playwright-mcp'

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