desktop_screenshot
Capture Windows screens, displays, windows, or regions and return images with physical-pixel coordinates and frame IDs for accurate click, drag, and scroll projection.
Instructions
Capture the Windows screen, a specific display, a specific window (even overlapped via PrintWindow), a screen/window region, or a foreground-plus-related-windows bundle. Returns the image directly plus physical-pixel coordinate metadata and a frame_id for accurate click/drag/scroll projection.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "desktop_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip | No | Clip region to virtual desktop / window bounds instead of failing. | |
| scale | No | ||
| format | No | png | |
| region | No | Rectangular crop { x, y, width, height }. | |
| stable | No | ||
| window | No | Window handle (hwnd from desktop_windows) to capture. | |
| display | No | 0 for primary monitor, 1..N for secondary monitors, or "all" for the entire virtual desktop. | |
| quality | No | ||
| surface | No | window | |
| captures | No | Set "related" to capture related owned dialogs/tool windows of `window`. | single |
| save_path | No | Optional local file path to copy the screenshot to. | |
| settle_ms | No | ||
| max_related | No | ||
| region_space | No | screen | |
| stability_ms | No | ||
| require_window | No | Refuse instead of falling back to screen capture if window cannot render. |