Skip to main content
Glama

Windows Automation MCP Server

maximize_window

Maximize any application window by specifying its title. This tool helps users quickly expand windows to full screen for better visibility and workspace management.

Instructions

最大化窗口

Input Schema

NameRequiredDescriptionDefault
titleYes窗口标题

Input Schema (JSON Schema)

{ "properties": { "title": { "description": "窗口标题", "type": "string" } }, "required": [ "title" ], "type": "object" }

Implementation Reference

  • The core handler function for the 'maximize_window' tool. It takes a window title and currently returns a stub response 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 }; } }
  • Tool schema definition including input validation for the 'maximize_window' tool.
    { name: 'maximize_window', description: '最大化窗口', inputSchema: { type: 'object', properties: { title: { type: 'string', description: '窗口标题' }, }, required: ['title'], }, },
  • Registration and dispatch logic in the executeTool switch statement that handles 'maximize_window' calls.
    case 'maximize_window': return await this.maximizeWindow(args.title);
  • Tool name registered in the canHandle method's supported tools list.
    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