vm_screenshot
Capture a UTM guest's screen as a native-resolution PNG for visual inspection and coordinate mapping, with optional Windows window targeting or token-saving downscaling.
Instructions
The guest's screen as a PNG at native resolution; vm_click coordinates refer to a full-screen shot. On Windows guests with the helper (vm_helper_install) it needs no QMP and takes hwnd (one window, from vm_windows) and max_width (downscale to save tokens; a text note then gives the origin and scale to map image pixels back to screen pixels). Without the helper: QMP, full screen.
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": {
"vm": "<vm>"
},
"name": "vm_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| hwnd | No | ||
| max_width | No |