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
| Name | Required | Description | Default |
|---|---|---|---|
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; }); - index.js:361-365 (handler)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; });