Skip to main content
Glama
Rainmen-xia

Chrome Debug MCP Server

by Rainmen-xia

close_browser

Closes the active browser connection to end debugging sessions and release resources in Chrome automation workflows.

Instructions

关闭浏览器连接

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implements the core logic to close or disconnect the browser session and reset internal state.
    async closeBrowser(): Promise<BrowserActionResult> { if (this.browser || this.page) { console.log("关闭浏览器连接..."); if (this.isUsingRemoteBrowser && this.browser) { await this.browser.disconnect().catch(() => {}); } else { await this.browser?.close().catch(() => {}); } this.resetBrowserState(); } return { success: true }; }
  • Defines the tool schema with name, description, and empty input schema for the close_browser tool.
    { name: "close_browser", description: "关闭浏览器连接", inputSchema: { type: "object", properties: {}, }, },
  • src/index.ts:178-180 (registration)
    Registers the handler dispatch for close_browser tool calls in the MCP CallToolRequestSchema handler.
    case "close_browser": result = await this.browserSession.closeBrowser(); break;

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/Rainmen-xia/chrome-debug-mcp'

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