Skip to main content
Glama
eva-wanxin-git

Windows Automation MCP Server

maximize_window

Maximizes a window to full screen using its title. This tool helps users quickly expand windows for better visibility and workspace management.

Instructions

最大化窗口

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes窗口标题

Implementation Reference

  • The handler function that implements the logic for the 'maximize_window' tool. It currently returns a placeholder message indicating the feature is under development.
    async maximizeWindow(title) { try { // 这个需要使用 Windows API,暂时返回提示 return { success: false, message: '功能开发中,建议使用 activate_window 后手动最大化' }; } catch (error) { return { success: false, error: error.message }; } }
  • The input schema definition for the 'maximize_window' tool, including name, description, and required 'title' parameter.
    { name: 'maximize_window', description: '最大化窗口', inputSchema: { type: 'object', properties: { title: { type: 'string', description: '窗口标题' }, }, required: ['title'], }, },
  • The switch case in executeTool method that registers and dispatches the 'maximize_window' tool call to the handler.
    case 'maximize_window': return await this.maximizeWindow(args.title);
  • The canHandle method includes 'maximize_window' in the list of supported tools.
    const tools = ['list_windows', 'get_active_window', 'activate_window', 'close_window', 'minimize_window', 'maximize_window']; return tools.includes(toolName); }

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