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
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | 窗口标题 |
Input Schema (JSON Schema)
{
"properties": {
"title": {
"description": "窗口标题",
"type": "string"
}
},
"required": [
"title"
],
"type": "object"
}
Implementation Reference
- src/tools/window.js:234-241 (handler)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 }; } }
- src/tools/window.js:63-73 (schema)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'], }, },
- src/tools/window.js:95-96 (registration)Registration and dispatch logic in the executeTool switch statement that handles 'maximize_window' calls.case 'maximize_window': return await this.maximizeWindow(args.title);
- src/tools/window.js:78-80 (registration)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);