Skip to main content
Glama

OpenFactory

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

NameRequiredDescriptionDefault
api_keyNoYour OpenFactory MCP API key (optional)
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 from a previous tool response

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/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 so well: it enumerates the three return artifacts, states the downscale threshold and that coordinates are in native resolution, explains the capture path (hypervisor framebuffer, no guest agent) and its consequences (works on greeter/installer/broken sessions), and warns that OmniParser's element list may not match the actual screen. That is exactly the behavioral context an agent needs.

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 action is front-loaded in the first sentence, followed by a paragraph on return values, one on capture mechanics, and one caveat about trusting the element list — each block earns its place. Slightly verbose in the 1280 px parenthetical, but nothing is redundant.

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

Completeness5/5

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

There is no output schema, so the description's enumeration of the frame, full-resolution URL, and OmniParser element list is what makes the return value usable, and the caveat about OmniParser accuracy closes the main failure mode. For a read-only capture tool with a fully documented schema, nothing an agent needs to call it correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents vm_name, response_mode, include_perf, api_key, and session_token. The description adds some framing ("full" mode is implicitly the default with frame + URL + elements) but does not explain response_mode's alternatives or what include_perf surfaces. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

"Take a screenshot of the VM's display and look at what is on screen" states a specific verb and resource, and the description goes on to position the tool relative to desktop_interact ("feed an element's center straight into a desktop_interact click action"). An agent can tell what this does and how it differs from the interaction tools without opening any 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 explicit ordering guidance — "Call this first to orient yourself" — and a concrete handoff rule: use the detected element coordinates to drive desktop_interact. It also scopes the tool to the run's of-test-* VM and notes it works on a greeter, installer, or broken session. There is no explicit statement of when NOT to use it (e.g., versus other screenshot siblings), which keeps it off a 5.

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.