browser_navigate_forward
Navigate forward to the next page in a web browser using Playwright MCP for structured browser automation.
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 handler function for the 'browser_navigate_forward' tool. It retrieves the current tab and calls goForward() on its page, then returns a code snippet and other metadata.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)Zod schema definition for the 'browser_navigate_forward' tool, specifying name, title, description, empty input schema, and readOnly type.schema: { name: 'browser_navigate_forward', title: 'Go forward', description: 'Go forward to the next page', inputSchema: z.object({}), type: 'readOnly', },
- src/tools/navigate.ts:100-104 (registration)Module-level registration exporting an array of navigation tools, including the browser_navigate_forward tool via goForward.export default (captureSnapshot: boolean) => [ navigate(captureSnapshot), goBack(captureSnapshot), goForward(captureSnapshot), ];
- src/tools.ts:36-52 (registration)Top-level registration of snapshotTools array, which includes navigation tools (containing browser_navigate_forward) via ...navigate(true).export const snapshotTools: Tool<any>[] = [ ...common(true), ...console, ...dialogs(true), ...files(true), ...install, ...keyboard(true), ...navigate(true), ...network, ...pdf, ...screenshot, ...snapshot, ...tabs(true), ...testing, ...video, ...wait(true), ];
- src/tools.ts:54-69 (registration)Top-level registration of visionTools array, which includes navigation tools (containing browser_navigate_forward) via ...navigate(false).export const visionTools: Tool<any>[] = [ ...common(false), ...console, ...dialogs(false), ...files(false), ...install, ...keyboard(false), ...navigate(false), ...network, ...pdf, ...tabs(false), ...testing, ...video, ...vision, ...wait(false), ];