Skip to main content
Glama

browser_navigate_back

Navigate back to the previous page in the browser during automation workflows. Use this tool to return to prior web pages when testing or interacting with websites programmatically.

Instructions

Go back to the previous page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function that performs the browser back navigation by calling `tab.page.goBack()`, includes a snapshot in the response, and adds corresponding Playwright code snippets.
    handle: async (tab, params, response) => { await tab.page.goBack(); response.setIncludeSnapshot(); response.addCode(`// Navigate back`); response.addCode(`await page.goBack();`); },
  • Zod schema definition for the tool, specifying name, title, description, empty inputs (no parameters), and readOnly type.
    schema: { name: 'browser_navigate_back', title: 'Go back', description: 'Go back to the previous page', inputSchema: z.object({}), type: 'readOnly', },
  • src/tools.ts:44-44 (registration)
    Registers the browser_navigate_back tool by spreading the exports from navigate.ts into the central allTools array used by the system.
    ...navigate,
  • Exports the defined goBack tool (browser_navigate_back) as part of the module's default export array for inclusion in the tools registry.
    goBack,

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/nzjami/mcpPlaywright'

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