cu_bg_capture
Captures occluded or offscreen Windows by handle, using PrintWindow(PW_RENDERFULLCONTENT) with WM_PRINT fallback and optional synthetic fallback for headless or zero-RGB cases.
Instructions
Capture occluded or offscreen window surface via PrintWindow(PW_RENDERFULLCONTENT) with WM_PRINT fallback.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hwnd": "<hwnd>"
},
"name": "cu_bg_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | Yes | Target window handle (HWND). | |
| desktop_name | No | Desktop session name (default 'Default'). | |
| fallback_seed | No | Synthetic fallback seed if headless or zero RGB. | |
| fallback_width | No | Synthetic fallback width in pixels. | |
| fallback_height | No | Synthetic fallback height in pixels. |