Skip to content

v3.2.0

Choose a tag to compare

@github-actions github-actions released this 20 Oct 08:07
· 202 commits to main since this release

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 and wait_for_window add monitorId, the id get_monitors gives the monitor.
    • They also add zone: the snap_window position the window fills (left_half, fullscreen, ...; monitor for 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_info with detail: "full" adds restore (state, bounds and monitor). A minimized window's monitorIndex is the monitor it restores to; the docs now say so.
  • find_windows takes includeMinimized (#16). false leaves minimized windows out, often most of a listing.
  • wait_for_window waits on a set of windows (#14).
    • New conditions minimized and maximized.
    • all: true, for every window that counts: "all restored" is all with visible.
    • count {atLeast, exactly, atMost} for how many windows are open.
    • With all or count, stableMs needs 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.
  • The session lock (#18). get_desktop_state and get_foreground_window report sessionLock: locked, unlocked or unknown. 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 adds isCloaked, and get_control_status says when the session is locked.
  • Windows that keep out of captures (#17).
    • Screenshots, region captures, OCR and wait_for_visual list in excludedFromCapture the 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_info full adds displayAffinity.
    • Captures taken while the session is locked warn SessionLocked (or DesktopUnavailable).
  • DeadKeyPressed (#8). press_keys and send_keys warn 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_steps keeps a step's warnings (#9, #10). An ok step whose result is left out now keeps its warnings, so a key step in the middle of a run says when its chord may not reach the app.
  • A send_keys or press_keys call that stopped part way (#9) reports sentAsCharacters, resolvedChords and the warnings for the keys that went out.
  • save_workspace keeps every tab of a browser started with a debug port, as documented, instead of only the page it shows. restore_workspace reads 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_window without monitor snapped it there, and now fails with MoveFailed.
    • move_window_to_monitor could 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:
    • monitorIndex on window rows and the geometry results is left out when the monitor cannot be read. It used to read 0.
    • The same holds for monitor on get_desktop_state's rows.
  • wait_for_window:
    • It lists up to 20 candidates (5 before).
    • An exists timeout now returns the windows that appeared but did not stay.
    • With all or count, window is left out and candidates lists the set.
  • NoForegroundWindow's message says whether the session is locked. The error code is unchanged.
  • OCR and wait_for_visual count a window excluded from capture as see-through when they mask denied windows.
  • The input-method SystemHotkey warning 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_url with 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

  1. monitorIndex and monitor may be absent. If you read them from window rows, the geometry results or get_desktop_state's rows, allow them to be left out. That happens only when the monitor cannot be read, as while displays change.
  2. New shape of wait_for_window's result. If you parse its candidates, expect up to 20 entries with state, visibleBounds, monitorIndex, monitorId and zone. With all or count, read candidates and matchCount, not window.
  3. Monitor failures are reported. If a script relied on snap_window or move_window_to_monitor succeeding while the monitor could not be read, it now gets MoveFailed.

See Changes for existing clients for the full list.

Full Changelog: v3.1.0...v3.2.0