desktop_screenshot
Take a screenshot of the VM's display and look at what is on screen.
Returns three things: the frame itself as an inline image (downscaled only
above 1280 px on the long edge — fleet VMs render 1280x800, so you normally
see native pixels), the full-resolution URL, and OmniParser's list of
detected UI elements with coordinates in the screenshot's NATIVE
resolution. Feed an element's center straight into a desktop_interact
click action.
Works on the run's of-test-* VM and needs no guest agent: the frame is captured from the hypervisor's framebuffer, so it also works on a greeter, an installer, or a system whose session is broken.
Look at the image before trusting the element list: OmniParser reports what it recognized, not what is on screen. Call this first to orient yourself.
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_name": "<vm_name>"
},
"name": "desktop_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Your OpenFactory MCP API key (optional) | |
| vm_name | Yes | VM to drive. For a graph launch use its returned of-deploy-* vm_name. For image verification use the of-test-* vm_name returned by resume_test_environment or vms[].vm_name / environment.snapshot.vm_name from get_test_results. For app testing use your own of-desktop-* or of-tester-* VM. | |
| include_perf | No | Include per-stage timing metrics in the response. | |
| response_mode | No | Response detail: full (inline frame + URL + UI elements), screenshot (inline frame + URL, skip OmniParser), none (no capture; blind action only). | full |
| session_token | No | Session token from a previous tool response |