browser_navigate_back
Enables navigation to the previous web page in browser automation workflows, facilitating sequential interactions within web applications using Playwright MCP.
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 for the browser_navigate_back tool. It retrieves the current tab, calls page.goBack(), and returns generated code snippet and other metadata.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, 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.ts:36-52 (registration)Registration of the navigate tools module (which includes browser_navigate_back) into the snapshotTools array via spread operator.export const snapshotTools: Tool<any>[] = [ ...common(true), ...console, ...dialogs(true), ...files(true), ...install, ...keyboard(true), ...navigate(true), ...network, ...pdf, ...screenshot, ...snapshot, ...tabs(true), ...testing, ...video, ...wait(true), ];
- src/tools.ts:54-69 (registration)Registration of the navigate tools module (which includes browser_navigate_back) into the visionTools array via spread operator.export const visionTools: Tool<any>[] = [ ...common(false), ...console, ...dialogs(false), ...files(false), ...install, ...keyboard(false), ...navigate(false), ...network, ...pdf, ...tabs(false), ...testing, ...video, ...vision, ...wait(false), ];