browser_navigate_forward
Navigate forward to the next page in a web browser session using structured accessibility snapshots, enabling efficient web interaction without visual models.
Instructions
Go forward to the next page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/navigate.ts:68-72 (handler)The handler function that performs the forward navigation on the current browser tab's page, includes a snapshot in the response, and appends the equivalent Playwright code for user reference.handle: async (tab, params, response) => { await tab.page.goForward(); response.setIncludeSnapshot(); response.addCode(`await page.goForward();`); },
- src/tools/navigate.ts:61-67 (schema)Tool schema defining name, title, description, no input parameters required, and read-only operation 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:59-73 (registration)Registration of the browser_navigate_forward tool using defineTabTool, bundling capability, schema, and handler.const goForward = defineTabTool({ capability: 'core', schema: { name: 'browser_navigate_forward', title: 'Go forward', description: 'Go forward to the next page', inputSchema: z.object({}), type: 'readOnly', }, handle: async (tab, params, response) => { await tab.page.goForward(); response.setIncludeSnapshot(); response.addCode(`await page.goForward();`); }, });
- src/tools.ts:36-52 (registration)Central aggregation of all tools, including those from navigate.ts (browser_navigate_forward), into allTools for further use in server backend.export const allTools: Tool<any>[] = [ ...common, ...console, ...dialogs, ...evaluate, ...files, ...install, ...keyboard, ...navigate, ...network, ...mouse, ...pdf, ...screenshot, ...snapshot, ...tabs, ...wait, ];
- src/browserServerBackend.ts:50-50 (registration)In the BrowserServerBackend constructor, sets the tools list using filteredTools, which includes browser_navigate_forward, for MCP server tool registration.this._tools = filteredTools(config);