Skip to main content
Glama

browser_list_instances

Retrieve a list of all active browser instances running on the Concurrent Browser MCP server to manage or monitor parallel browsing sessions.

Instructions

List all browser instances

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Defines the tool schema: name, description 'List all browser instances', and empty input schema (no parameters).
    { name: 'browser_list_instances', description: 'List all browser instances', inputSchema: { type: 'object', properties: {} } },
  • Handler case in BrowserTools.executeTools that executes the tool by calling BrowserManager.listInstances().
    case 'browser_list_instances': return this.browserManager.listInstances();
  • Core implementation that maps over all browser instances and returns a ToolResult with instance details including ID, status, timestamps, metadata, current URL, total count, and max allowed.
    listInstances(): ToolResult { const instanceList = Array.from(this.instances.values()).map(instance => ({ id: instance.id, isActive: instance.isActive, createdAt: instance.createdAt.toISOString(), lastUsed: instance.lastUsed.toISOString(), metadata: instance.metadata, currentUrl: instance.page.url() })); return { success: true, data: { instances: instanceList, totalCount: this.instances.size, maxInstances: this.config.maxInstances } }; }
  • src/server.ts:40-45 (registration)
    MCP server registration for ListTools request, which returns all tools from BrowserTools.getTools(), including browser_list_instances.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => { const tools = this.browserTools.getTools(); return { tools: tools, }; });

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