Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
operationYesOperation: list, tree, find, inspect, screenshot, gettext, settext, click, type, send, show, move, close, focus,required
hwndNoWindow handle in hex (e.g. '0x1A2B3C'). Required for most operations except list/find
titleNoWindow title substring to search for (case-insensitive)
classNoWindow class name to search for
pidNoFilter by process ID
xNoX coordinate (client-relative) for click
yNoY coordinate (client-relative) for click
buttonNoMouse button: left (default), right, middle. For click
textNoText for type/settext operations
msgNoWindow message ID (e.g. 16 for WM_CLOSE, 274 for WM_SYSCOMMAND). For send
wparamNoWPARAM value for send operation
lparamNoLPARAM value for send operation
postNoUse PostMessage instead of SendMessage (async). Default: false
show_cmdNoShow command: show, hide, minimize, maximize, restore. For show
move_xNoNew X position for move
move_yNoNew Y position for move
widthNoNew width for move (0 = keep current)
heightNoNew height for move (0 = keep current)
max_resultsNoMaximum number of results. Default: 100, Max: 1000

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/knewstimek/agent-tool'

If you have feedback or need assistance with the MCP directory API, please join our Discord server