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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/navigate.ts:85-97 (handler)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, }; },
- src/tools/navigate.ts:78-84 (schema)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), ];
- src/connection.ts:30-32 (registration)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);