Skip to main content
Glama

browser_navigate_back

Navigate to the previous page in the browser during web automation. Use this Playwright MCP tool to return to the prior page when interacting with web content.

Instructions

Go back to the previous page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function that navigates the browser tab back using tab.page.goBack() and generates corresponding code snippet.
    handle: async context => { const tab = await context.ensureTab(); await tab.page.goBack(); const code = [ `// Navigate back`, `await page.goBack();`, ]; return { code, captureSnapshot, waitForNetwork: false, }; },
  • Schema definition for the browser_navigate_back tool, specifying name, title, description, input schema, and type.
    schema: { name: 'browser_navigate_back', title: 'Go back', description: 'Go back to the previous page', inputSchema: z.object({}), type: 'readOnly', },
  • Registration of the browser_navigate_back tool (as goBack) in the exported array of tools.
    export default (captureSnapshot: boolean) => [ navigate(captureSnapshot), goBack(captureSnapshot), goForward(captureSnapshot), ];

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

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