Skip to main content
Glama
eva-wanxin-git

Windows Automation MCP Server

browser_close

Closes browser windows automatically to manage system resources and maintain workflow efficiency in Windows automation tasks.

Instructions

关闭浏览器

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdNo会话 ID(可选)

Implementation Reference

  • The handler function that executes the browser_close tool logic: closes the Puppeteer browser for the given sessionId, cleans up storage, and returns status.
    async closeBrowser(sessionId = 'default') { try { const browser = this.browsers.get(sessionId); if (!browser) { return { success: false, error: '浏览器未找到' }; } await browser.close(); this.browsers.delete(sessionId); this.pages.delete(sessionId); return { success: true, message: '浏览器已关闭', sessionId }; } catch (error) { return { success: false, error: error.message }; } }
  • Input schema and metadata definition for the browser_close tool.
    { name: 'browser_close', description: '关闭浏览器', inputSchema: { type: 'object', properties: { sessionId: { type: 'string', description: '会话 ID(可选)' }, }, }, },
  • Registration of the browser_close handler in the central executeTool switch dispatcher.
    case 'browser_close': return await this.closeBrowser(args.sessionId);

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/eva-wanxin-git/windows-automation-mcp'

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