Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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();`); },
  • 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', },
  • 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, ];
  • In the BrowserServerBackend constructor, sets the tools list using filteredTools, which includes browser_navigate_forward, for MCP server tool registration.
    this._tools = filteredTools(config);

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

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