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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/navigate.ts:53-58 (handler)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();`); },
- src/tools/navigate.ts:45-51 (schema)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', },
- src/tools/navigate.ts:81-81 (registration)The goBack tool is included in the default export array, registering it for use in the MCP tools system.goForward,
- src/tools/navigate.ts:82-82 (registration)Closing of the export array that registers multiple navigation tools including browser_navigate_back.];