screenshot
Capture a monitor or a pixel region as a PNG file. Optionally target a specific window even when it is unfocused or hidden behind other windows.
Instructions
Capture a screenshot of a monitor (or a pixel region) and save it as PNG.
BACKGROUND CAPTURE: set hwnd or window_title to capture one specific window
via Win32 PrintWindow - this works even when the window is NOT focused, is hidden
behind other windows, or runs on an off-screen/headless desktop.
Args: params (ScreenshotInput): monitor index, optional region, output path, optional window target and client_only flag.
Returns: str: JSON {"ok": true, "path": "...", "width": W, "height": H}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |