Skip to main content
Glama

browser_close

Close a browser instance to free system resources and manage concurrent sessions in the browser pool.

Instructions

Close browser

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • index.js:360-365 (registration)
    Registration of the 'browser_close' tool using server.tool().
    server.tool('browser_close', 'Close browser', {},
      async (args) => {
        const result = await proxyToolCall('browser_close', args);
        hasActivePage = false; // Mark page as inactive after close
        return result;
      });
  • The handler function for 'browser_close' that calls proxyToolCall and updates the local state.
    async (args) => {
      const result = await proxyToolCall('browser_close', args);
      hasActivePage = false; // Mark page as inactive after close
      return result;
    });

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/OMGEverdo/browser-pool-mcp'

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