browser_navigate_back
Navigate back to the previous page in the browser during automation workflows. Use this tool to return to prior web pages when testing or interacting with websites programmatically.
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)The main handler function that performs the browser back navigation by calling `tab.page.goBack()`, includes a snapshot in the response, and adds corresponding Playwright 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)Zod schema definition for the tool, specifying name, title, description, empty inputs (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:44-44 (registration)Registers the browser_navigate_back tool by spreading the exports from navigate.ts into the central allTools array used by the system....navigate,
- src/tools/navigate.ts:80-80 (registration)Exports the defined goBack tool (browser_navigate_back) as part of the module's default export array for inclusion in the tools registry.goBack,