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
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | 窗口标题 |
Implementation Reference
- src/tools/window.js:234-241 (handler)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 }; } }
- src/tools/window.js:63-73 (schema)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'], }, },
- src/tools/window.js:95-96 (registration)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);
- src/tools/window.js:78-81 (registration)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); }