screenshot
Captures a monitor, selected pixel region, or a specific window (even when unfocused or occluded) and saves it as a PNG file for desktop inspection.
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 |