wpf_capture_screenshot
Capture a screenshot of a WPF window or a specific element, with render mode for off-screen capture or screen mode to include popups and menus.
Instructions
Capture a screenshot of the WPF window or a specific element. Returns an image that can be visually analyzed. Use element_handle to capture a specific element, or omit for the entire window. mode='render' (default) re-renders the visual off-screen — works even if the window is covered, but CANNOT see open Popups, ComboBox dropdowns, context menus or tooltips. mode='screen' captures the actual on-screen pixels (GDI) and DOES include them — use it right after clicking something that opened a popup/menu; requires the window to be visible and unobstructed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | render | |
| max_width | No | ||
| max_height | No | ||
| element_handle | No |