Skip to main content
Glama

close_browser

Terminate the active browser instance in AutoProbeMCP to end web interactions and free resources during browser automation tasks.

Instructions

Close the current browser instance

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler implementation for the close_browser tool. Closes the current browser instance if it exists, resets global browser state variables, and returns a success or no-browser message.
    case 'close_browser': { if (currentBrowser) { await currentBrowser.close(); currentBrowser = null; currentContext = null; currentPage = null; return { content: [ { type: 'text', text: 'Browser closed successfully' } ] }; } else { return { content: [ { type: 'text', text: 'No browser instance to close' } ] }; } }
  • src/index.ts:322-329 (registration)
    Registration of the close_browser tool in the ListToolsRequestHandler, defining its name, description, and empty input schema.
    { name: 'close_browser', description: 'Close the current browser instance', inputSchema: { type: 'object', properties: {} } },

Other Tools

Related 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/Wladastic/AutoProbeMCP'

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