Skip to main content
Glama

browser_navigate_back

Navigate back to the previous web page in the browser history using the Playwright MCP server's structured accessibility snapshots.

Instructions

Go back to the previous page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that executes the goBack action on the browser tab's page, includes a snapshot in the response, and appends the equivalent Playwright code.
    handle: async (tab, params, response) => { await tab.page.goBack(); response.setIncludeSnapshot(); response.addCode(`await page.goBack();`); },
  • Schema defining the tool's name, title, description, empty input schema (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:36-52 (registration)
    Global registration of all tools, including browser_navigate_back via spread of imported navigate tools array.
    export const allTools: Tool<any>[] = [ ...common, ...console, ...dialogs, ...evaluate, ...files, ...install, ...keyboard, ...navigate, ...network, ...mouse, ...pdf, ...screenshot, ...snapshot, ...tabs, ...wait, ];
  • Local export of the tool (goBack) as part of the navigate tools array for higher-level registration.
    export default [ navigate, goBack, goForward, ];

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