Skip to main content
Glama

browser_navigate_back

Navigate back to the previous webpage using Playwright MCP, enabling seamless back-button functionality in browser automation workflows for efficient web interaction.

Instructions

Go back to the previous page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that executes the browser_navigate_back tool by calling goBack on the tab's page and updating the response with snapshot and code snippets.
    handle: async (tab, params, response) => { await tab.page.goBack(); response.setIncludeSnapshot(); response.addCode(`// Navigate back`); response.addCode(`await page.goBack();`); },
  • Schema definition for the browser_navigate_back tool, including name, title, description, empty input schema, and readOnly type.
    schema: { name: 'browser_navigate_back', title: 'Go back', description: 'Go back to the previous page', inputSchema: z.object({}), type: 'readOnly', },
  • The goBack tool is included in the default export array, registering it for use in the MCP tools system.
    goForward,
  • Closing of the export array that registers multiple navigation tools including browser_navigate_back.
    ];

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