Repository navigation
v2.5.0
Windows App Manager MCP 2.5.0 improves screenshots in two ways:
- Windows that captured as a black image now come out right, through Windows.Graphics.Capture.
- Captures can show the mouse pointer and a coordinate grid, and small regions can be zoomed.
The release still needs the .NET 10 Desktop Runtime (x64), as 2.4.0 does.
New and changed
Windows that captured black
Some windows used to capture as a black or single-color image: windows drawn by the GPU, DirectComposition, WinUI and UWP (Store) apps. When that happens, capture_window and capture_with_elements now capture the window again the way the desktop compositor shows it, through Windows.Graphics.Capture. The new image is used when it isn't a single color too. Such captures report captureMethod: "WindowsGraphicsCapture".
- Windows that don't respond: they're now captured as the compositor last showed them, without the windows that cover them. Before, they were copied from the screen. Where Windows.Graphics.Capture isn't available, the screen copy is still used.
- New parameter
captureMethod:auto(the default, described above),printwindow(the old behavior),wgc(only Windows.Graphics.Capture;CaptureFailedwith the reason when it can't) orscreen(a copy of the screen, covering windows included). - The OCR tools: they read windows the
autoway too.wait_for_visualis unchanged. - Yellow border: on Windows 10, Windows draws a yellow border around a window for the moment of a Windows.Graphics.Capture capture. On Windows 11 the server turns it off where Windows allows it.
The pointer, a coordinate grid and zoom
These apply to take_screenshot, capture_region and capture_window:
cursorin every result: where the mouse pointer was. It also hashidden: truewhen the pointer was hidden, anddrawn: truewhen it was drawn into the image.includeCursor: true: draws the pointer into the image. Nothing ever moves the pointer.gridSpacing(20-10000 screen pixels): draws lines at multiples of that value in screen coordinates, labeled along the top and left edges. An agent can then read a point's screen position straight off the image. A grid too dense for the scaled image is drawn wider, with the warningGridWidened.zoom(1-4,capture_regiononly): enlarges a small region to read small text or controls. Clicks on a point of the zoomed image, throughcaptureIdorimageToScreen, still land on the right screen point.
A zoom or gridSpacing value out of range is InvalidImageSize. The default tool list grows by about 500 tokens in all.
Checks
- Automated: all unit and contract tests pass, about 10,600.
- On a real desktop:
- Windows.Graphics.Capture captured a test window at the same place and size as PrintWindow, with matching pixels, with and without the frame.
- A capture with
includeCursordrew the pointer into the image where it was.