window
Close a specified app or UI element by HWND, title, or process using UI Automation and WM_CLOSE, verify it closed, and report any Save prompt without responding.
Instructions
Manage a NAMED window (hwnd: number, title or process). action="close": close it cleanly (UI Automation, then WM_CLOSE), the closing is read back; a "Save?" prompt, if any, is reported, never answered. Example: {"action": "close", "hwnd": 123456}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | Yes | ||
| action | Yes |