Skip to main content
Glama

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
NameRequiredDescriptionDefault
tabIdNo

Implementation Reference

  • 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' // } // ] // };
  • 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();
  • 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}'` // } // ] // };
  • 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)' // } // }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JediLuke/firefox-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server