Repository navigation
v2.4.0
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;minimizedandrestored.
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:
- Call it once before an action, and keep
nextSeq. - After the action, call it with
sinceSeqset to that value. The result lists everything that came up or went in between, with a newnextSeqfor next time.
Options and fields:
- Filters:
types,processNameandhandle. limitcaps the events per call (1-200, default 50).more: truemeans there are more: call again withnextSeq.missedcounts 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 aswait_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_windowdesktop 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.