Skip to content

v2.4.0

Choose a tag to compare

@github-actions github-actions released this 17 Oct 15:37
· 446 commits to main since this release

Windows App Manager MCP 2.4.0 adds a window event journal. In one cheap call, an agent can now ask what happened to the desktop's windows since an earlier call: did a dialog pop up, did the focus move, did a title change? Popups that are already gone again are included.

The release still needs the .NET 10 Desktop Runtime (x64), as 2.3.0 does.

New

get_window_events

A new read-only tool in the default-on windows toolset. 62 tools are now served by default.

It returns the events since an earlier call, oldest first:

  • shown: a dialog, popup, menu or new window appeared;
  • hidden;
  • destroyed: a window closed;
  • foreground: which window came to the front;
  • titleChanged;
  • minimized and restored.

Each event has seq, at, type, handle, title, className (#32770 is a standard dialog), processName, processId and ownerHandle (a dialog's main window).

Typical use:

  1. Call it once before an action, and keep nextSeq.
  2. After the action, call it with sinceSeq set to that value. The result lists everything that came up or went in between, with a new nextSeq for next time.

Options and fields:

  • Filters: types, processName and handle.
  • limit caps the events per call (1-200, default 50). more: true means there are more: call again with nextSeq.
  • missed counts events that are no longer held. The journal keeps the last 1,024.

How it records:

  • Recording on demand: the first call starts the recording (startedNow: true), and it stops after 10 minutes without a call. It uses the same window events as wait_for_window, so a session that never calls it keeps no hooks installed.
  • What counts: only top-level windows of other processes.
  • Left out: tooltips, shadows and input-method windows, and the title changes of the agent's own terminal.
  • Popups that close quickly: each window is read the moment its event arrives, so a popup that closes a moment later is still recorded, with what it was.

The server's instructions to agents now mention get_window_events. To keep them under 3,000 characters, wait_for_window's line is a little shorter.

Checks

  • Automated: all unit and contract tests pass, about 10,560.
  • Desktop:
    • The new desktop test passed: the journal recorded a real window being minimized and restored, with its title, class and process.
    • The existing wait_for_window desktop tests still pass.
    • The desktop test for 2.3.0's takeover detection also passed: Windows installs the hooks, and the server's own typing never stops an operation. That was the one check 2.3.0 shipped without.