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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:654-679 (handler)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: {} } },