wintool
Automate Windows GUI tasks by finding, inspecting, and controlling windows and controls. Perform operations like clicking, typing, moving windows, capturing screenshots, and sending messages for Windows automation.
Instructions
Windows GUI automation tool for finding, inspecting, and controlling windows. Find windows by title/class/PID, enumerate child controls, capture screenshots (base64 PNG), read/set text, click, type, send raw messages, show/hide/minimize/maximize, move/resize, close, focus. Windows only. macOS and Linux are not supported. Operations: list, tree, find, inspect, screenshot, gettext, settext, click, type, send, show, move, close, focus.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | Operation: list, tree, find, inspect, screenshot, gettext, settext, click, type, send, show, move, close, focus,required | |
| hwnd | No | Window handle in hex (e.g. '0x1A2B3C'). Required for most operations except list/find | |
| title | No | Window title substring to search for (case-insensitive) | |
| class | No | Window class name to search for | |
| pid | No | Filter by process ID | |
| x | No | X coordinate (client-relative) for click | |
| y | No | Y coordinate (client-relative) for click | |
| button | No | Mouse button: left (default), right, middle. For click | |
| text | No | Text for type/settext operations | |
| msg | No | Window message ID (e.g. 16 for WM_CLOSE, 274 for WM_SYSCOMMAND). For send | |
| wparam | No | WPARAM value for send operation | |
| lparam | No | LPARAM value for send operation | |
| post | No | Use PostMessage instead of SendMessage (async). Default: false | |
| show_cmd | No | Show command: show, hide, minimize, maximize, restore. For show | |
| move_x | No | New X position for move | |
| move_y | No | New Y position for move | |
| width | No | New width for move (0 = keep current) | |
| height | No | New height for move (0 = keep current) | |
| max_results | No | Maximum number of results. Default: 100, Max: 1000 |