desktop_interact
Execute a sequence of actions on the VM's desktop, then return the screen.
The post-action screenshot comes back as an inline image (plus its URL and OmniParser elements), so you can see what your actions actually did.
On a build's of-test-* VM this is the ONLY way to click, type, press keys, scroll or drag — batch the steps of one interaction here (e.g. click a field, type text, press Enter). Keep batches short: the whole call shares a 25-second budget, which explicit wait actions extend.
An optional verification_capture (or motion_capture) action runs the native recorder concurrently with this sequence (delay_seconds counts from dispatch, not its position in the array). It requires the ready session's build_id and app_run_id plus a stable operation_id; the native recorder still enforces all guards. The response includes verification_capture metadata alongside the action frame (with display_motion for a motion_capture).
NAVIGATING CANVASES (node graphs, maps, diagrams, image viewers): you are not limited to what's currently on screen — you can zoom and pan. • scroll = ZOOM on a canvas. Scroll over EMPTY canvas space (not on a node or card, which may capture the wheel) with a meaningful amount (e.g. 6–10) — direction "up" zooms in, "down" zooms out. Small amounts may not move the view noticeably. • drag across EMPTY canvas space = PAN (use a drag action in this tool). Typical flow for a large graph/map: scroll down to zoom OUT for an overview → drag to pan to the area you want → scroll up to zoom IN before clicking. If something seems missing or cut off, zoom out / pan before concluding it's absent.
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>",
"actions": "<actions>"
},
"name": "desktop_interact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | Yes | JSON array of actions to execute sequentially. Each action is an object with a "type" field. Supported types: {"type": "click", "x": 500, "y": 300} — left click {"type": "double_click", "x": 500, "y": 300} — double click {"type": "right_click", "x": 500, "y": 300} — right click {"type": "move", "x": 500, "y": 300} — move mouse {"type": "scroll", "x": 500, "y": 300, "direction": "down", "amount": 3} {"type": "drag", "x": 100, "y": 100, "end_x": 400, "end_y": 400} {"type": "type", "text": "hello"} — type text {"type": "type_secret", "secret_name": "operator-password"} — privately deliver an existing deployment secret into a native console login or verified native PolicyKit hidden password field; no secret value returned. In an installed-system verification session whose first boot the platform unlocked, "installed-disk-passphrase" answers the native disk unlock prompt once after each guest shutdown plus cold_boot {"type": "key", "key": "Return"} — press key {"type": "key_hold", "key": "Right", "duration": 0.5} — hold a key for 0.05–2 seconds, then release {"type": "wake"} — sole action: wake an existing sleeping VM through native ownership and admission checks; never start a stopped VM {"type": "cold_boot"} — sole action: start the same existing shutoff VM through native ownership and admission checks after normal guest shutdown; never stop, reset or change media {"type": "wait", "duration": 2} — wait N seconds {"type": "verification_capture", "build_id": "…", "app_run_id": "…", "operation_id": "…", "description": "…", "status": "passed", "notes": null, "intent_item_ids": ["…"], "delay_seconds": 0.5} — at most one; concurrently record a native frame after 0–10 seconds, bound to the ready verification session; no supplied images {"type": "motion_capture", …the verification_capture fields…, "seconds": 5} — instead of verification_capture, for video, animation or smoothness claims: the platform also samples the VM display for 0–10 seconds (about 30 fps) before the frame and gives the judge the updates per second and longest stall it measured {"type": "find_element", "element_text": "Settings"} — locate by label, no click {"type": "click_element", "element_text": "Settings"} — click the element named, no coordinates {"type": "type_into_element", "element_text": "Search", "text": "accent"} — focus that field and type Example: [{"type": "click", "x": 100, "y": 200}, {"type": "wait", "duration": 1}] | |
| api_key | No | MCP API key | |
| 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 | |
| screenshot_delay | No | Seconds to wait after all actions before taking screenshot (default: 0.15). |