Repository navigation
v3.2.0
Windows App Manager MCP 3.2.0 answers GitHub issues #8 to #18. Window listings now name each window's monitor and the snap zone it fills, wait_for_window can wait on a set of windows, get_desktop_state and get_foreground_window say whether the session is locked, and captures say which windows kept themselves out of the image. One result field can now be left out (monitorIndex, when the monitor cannot be read), and a few calls answer differently; each change is listed in Changes for existing clients.
The release still needs the .NET 10 Desktop Runtime (x64).
New
- Window rows name their monitor and zone (#12).
find_windows,get_window_info,get_foreground_window, the launch results andwait_for_windowaddmonitorId, the idget_monitorsgives the monitor.- They also add
zone: thesnap_windowposition the window fills (left_half,fullscreen, ...;monitorfor the whole monitor). - A window across two monitors has
spansMonitors: true. - So "did the window land on display 2, filling it?" is one read.
- Where a minimized window comes back to (#12).
get_window_infowithdetail: "full"addsrestore(state, bounds and monitor). A minimized window'smonitorIndexis the monitor it restores to; the docs now say so. find_windowstakesincludeMinimized(#16).falseleaves minimized windows out, often most of a listing.wait_for_windowwaits on a set of windows (#14).- New conditions
minimizedandmaximized. all: true, for every window that counts: "all restored" isallwithvisible.count{atLeast, exactly, atMost}for how many windows are open.- With
allorcount,stableMsneeds the same windows. - The result lists the set, up to 20 windows, each with its state, frame, monitor and zone. A timeout lists the last set seen.
- New conditions
- The session lock (#18).
get_desktop_stateandget_foreground_windowreportsessionLock:locked,unlockedorunknown. Judge a lock by it, not by the window in front, which may be the lock screen app or none.get_desktop_state's foreground addsisCloaked, andget_control_statussays when the session is locked. - Windows that keep out of captures (#17).
- Screenshots, region captures, OCR and
wait_for_visuallist inexcludedFromCapturethe windows in the area that ask Windows to leave them out of captures. Toasts and overlays often do; such a window is not in the image. - Capturing such a window itself warns
DisplayAffinity: the image may be black, empty or show what is behind it. get_window_infofulladdsdisplayAffinity.- Captures taken while the session is locked warn
SessionLocked(orDesktopUnavailable).
- Screenshots, region captures, OCR and
DeadKeyPressed(#8).press_keysandsend_keyswarn when a chord presses a dead key of the window's layout (alt+shift+\on a Norwegian keyboard), since its accent may wait and change the next key typed.
Fixed
run_stepskeeps a step's warnings (#9, #10). Anokstep whose result is left out now keeps itswarnings, so a key step in the middle of a run says when its chord may not reach the app.- A
send_keysorpress_keyscall that stopped part way (#9) reportssentAsCharacters,resolvedChordsand the warnings for the keys that went out. save_workspacekeeps every tab of a browser started with a debug port, as documented, instead of only the page it shows.restore_workspacereads such a window's page the same way when it checks whether a workspace is already open.- A window whose monitor cannot be read is no longer taken as being on monitor 0.
snap_windowwithoutmonitorsnapped it there, and now fails withMoveFailed.move_window_to_monitorcould report a move to monitor 0 as done; it now fails instead.
get_server_info's lock warning no longer says captures fail while the session is locked. They are not refused, and may show the lock screen.
Changed
- Breaking:
monitorIndexon window rows and the geometry results is left out when the monitor cannot be read. It used to read 0.- The same holds for
monitoronget_desktop_state's rows.
wait_for_window:- It lists up to 20 candidates (5 before).
- An
existstimeout now returns the windows that appeared but did not stay. - With
allorcount,windowis left out andcandidateslists the set.
NoForegroundWindow's message says whether the session is locked. The error code is unchanged.- OCR and
wait_for_visualcount a window excluded from capture as see-through when they mask denied windows. - The input-method
SystemHotkeywarning says Windows "may" take the chord. - The tool list grows a little: the default tool list is about 56,400 tokens (about 56,000 in 3.1.0); all 78 tools are about 66,500.
Docs and skill
- Check the Taskbar (#15): read or wait on the taskbars' app buttons in one call, by their language-independent
Appid: <AUMID>AutomationId. - Same-titled browser windows (#13): call
get_browser_urlwith each handle; the calls can be sent in parallel. - Multi-window waits in the skill's waiting.md.
- Error codes (#11): every error code the skill names has an entry, and tests keep the safety rules and the stop codes in
SKILL.md.
Upgrading
monitorIndexandmonitormay be absent. If you read them from window rows, the geometry results orget_desktop_state's rows, allow them to be left out. That happens only when the monitor cannot be read, as while displays change.- New shape of
wait_for_window's result. If you parse itscandidates, expect up to 20 entries withstate,visibleBounds,monitorIndex,monitorIdandzone. Withallorcount, readcandidatesandmatchCount, notwindow. - Monitor failures are reported. If a script relied on
snap_windowormove_window_to_monitorsucceeding while the monitor could not be read, it now getsMoveFailed.
See Changes for existing clients for the full list.
Full Changelog: v3.1.0...v3.2.0