Skip to main content
Glama

OpenFactory

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

NameRequiredDescriptionDefault
actionsYesJSON 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_keyNoMCP API key
vm_nameYesVM 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_perfNoInclude per-stage timing metrics in the response.
response_modeNoResponse detail: full (inline frame + URL + UI elements), screenshot (inline frame + URL, skip OmniParser), none (no capture; blind action only).full
session_tokenNoSession token
screenshot_delayNoSeconds to wait after all actions before taking screenshot (default: 0.15).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does a lot of it: it discloses the 25-second shared budget and that wait actions extend it, that delay_seconds counts from dispatch rather than array position, that verification_capture requires the ready session's build_id/app_run_id plus a stable operation_id, and that the native recorder still enforces its own guards. It stops short of stating failure behavior — whether a bad action aborts the remainder of the batch, or how destructive/irreversible clicks are handled — which matters for an unannotated input-driving tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core behavior and the return format are front-loaded, and the blocks are clearly separated (batching, capture actions, canvas navigation) so an agent can skim to what it needs. It is long and the canvas section is verbose relative to the rest, but nearly every sentence carries actionable constraint rather than restating the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter, no-output-schema, unannotated tool this is close to complete: the response contents (inline frame, URL, OmniParser elements, verification metadata, display_motion), the time budget, and the capture prerequisites are all covered. The remaining gap is error and partial-failure semantics for a batch that may act destructively on a live desktop.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns above that by explaining meaning the schema does not, notably that scroll over empty canvas space means ZOOM (up = in, down = out) and drag over empty canvas means PAN, and by clarifying the delay_seconds-from-dispatch semantics. It adds little about vm_name or response_mode beyond what the schema descriptions already state.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

It states a specific verb and resource — 'Execute a sequence of actions on the VM's desktop, then return the screen' — which tells an agent both what it does and what comes back. The line about a build's of-test-* VM being 'the ONLY way to click, type, press keys, scroll or drag' effectively rules out the single-action siblings (desktop_click, desktop_type, desktop_key, desktop_drag) for that class of VM, so the tool is distinguishable without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a concrete triggering condition ('on a build's of-test-* VM') and batching guidance ('batch the steps of one interaction here… keep batches short'), plus a specific multi-step workflow for canvases (zoom out → pan → zoom in). What it does not say is when an agent should prefer the single-action siblings instead — e.g. on non-of-test VMs — so the alternative-selection guidance is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.