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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/navigate.ts:60-73 (handler)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, }; },
- src/tools/navigate.ts:52-58 (schema)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', },
- src/tools/navigate.ts:100-104 (registration)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), ];