Skip to main content
Glama

browser_go_back

Navigate to the previous page in a browser instance. This tool helps users return to prior web pages during concurrent browsing sessions.

Instructions

Go back to the previous page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instanceIdYesInstance ID

Implementation Reference

  • Implements the core logic for the 'browser_go_back' tool by retrieving the browser instance and calling page.goBack(). Handles errors and returns ToolResult.
    private async goBack(instanceId: string): Promise<ToolResult> { const instance = this.browserManager.getInstance(instanceId); if (!instance) { return { success: false, error: `Instance ${instanceId} not found` }; } try { await instance.page.goBack(); return { success: true, data: { url: instance.page.url() }, instanceId }; } catch (error) { return { success: false, error: `Go back failed: ${error instanceof Error ? error.message : error}`, instanceId }; } }
  • Defines the tool schema including name, description, and input schema requiring 'instanceId'.
    name: 'browser_go_back', description: 'Go back to the previous page', inputSchema: { type: 'object', properties: { instanceId: { type: 'string', description: 'Instance ID' } }, required: ['instanceId'] } },
  • src/tools.ts:524-526 (registration)
    Registers the tool handler in the executeTools switch statement, dispatching to the goBack method.
    case 'browser_go_back': return await this.goBack(args.instanceId);

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/sailaoda/concurrent-browser-mcp'

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