back
Navigate to the previous page in a Firefox tab using Playwright automation. Simplify browser navigation and enhance multi-tab debugging workflows in MCP-enabled applications.
Instructions
Navigate back
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No |
Implementation Reference
- index.js:491-502 (handler)Handler function that executes page.goBack() to navigate back in browser history and returns a success message.// async back() { // this.ensureBrowserRunning(); // await this.page.goBack(); // return { // content: [ // { // type: 'text', // text: 'Navigated back' // } // ] // };
- index.js:203-208 (schema)Input schema definition for the 'back' tool in the tools list, accepting an empty object.// name: 'back', // description: 'Navigate back in browser history', // inputSchema: { // type: 'object', // properties: {} // }
- index.js:257-258 (registration)Registration of the 'back' tool handler in the CallToolRequestSchema switch statement.// case 'back': // return await this.back();
- index-multi-enhanced.js:971-984 (handler)Enhanced handler for 'back' tool supporting tabId, retrieves specific page and calls goBack().// async back(args = {}) { // this.ensureBrowserRunning(); // const { tabId } = args; // const page = this.getPage(tabId); // await page.goBack(); // return { // content: [ // { // type: 'text', // text: `Navigated back in tab '${tabId || this.activeTabId}'` // } // ] // };
- index-multi-enhanced.js:372-381 (schema)Input schema for enhanced 'back' tool allowing optional tabId.// name: 'back', // description: 'Navigate back in browser history', // inputSchema: { // type: 'object', // properties: { // tabId: { // type: 'string', // description: 'Tab ID (uses active tab if not provided)' // } // }