capture_window
Capture a single window’s pixels even when it is covered or behind other apps. Returns the window image plus title, size, and origin coordinates so image pixels map to screen positions.
Instructions
Capture one window's pixels, including while it is covered.
Uses PrintWindow, which asks the window to render itself, so the window does
not need to be in the foreground: a window hidden behind your terminal still
captures cleanly and only that window's content is in the image.
Returns an image plus a text block with the window title, the image size,
and `origin` - the screen coordinate of image pixel (0,0), so any pixel can
be mapped back to a screen position.
max_side downscales large windows to keep image tokens sane (0 disables).
Read-only. Minimised windows and some GPU-rendered surfaces capture blank,
which is reported instead of a useless image.
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": {
"window": "<window>"
},
"name": "capture_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| window | Yes | ||
| max_side | No |