Skip to main content
Glama

OpenFactory

desktop_key

Press a key or key combination on your desktop, then return screenshot + elements.

Common keys: Return, Tab, Escape, Backspace, Delete, Home, End, ctrl+l (focus URL bar), ctrl+w (close tab), ctrl+c (copy), ctrl+v (paste), alt+F4 (close window).

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>",
      "key": "<key>"
    },
    "name": "desktop_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesKey or key combination to press. Examples: 'Return', 'Tab', 'Escape', 'ctrl+l', 'ctrl+c', 'alt+F4', 'ctrl+shift+t'
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 key press before taking screenshot (default: 0.15).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full load. It usefully discloses that every call captures a screenshot plus UI elements, which is real behavioral context, but it omits permission requirements, the cost/risk of destructive combos like alt+F4 or ctrl+w, and how focus or active window affects the keypress.

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?

Two short sentences, with the action stated first and the reference list second. The key examples partially repeat the schema's examples, but they are cheap and aid scanning, so the slight redundancy is tolerable.

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

Completeness3/5

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

For a seven-parameter tool with no output schema, the description adequately signals the return payload ('screenshot + elements') and gives practical key examples. It still leaves the agent to infer VM targeting semantics and response_mode tradeoffs entirely from the schema.

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 all seven parameters are already documented, including response_mode's full/screenshot/none variants and screenshot_delay. The description's key examples largely duplicate the schema's own example list, so it adds little semantic value beyond the baseline.

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

Purpose4/5

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

States a specific verb and resource: 'Press a key or key combination on your desktop,' plus a side effect ('return screenshot + elements'). The enumerated common keys make the modality concrete and implicitly separate it from text-entry siblings like desktop_type, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

The key list with parenthetical intents ('ctrl+l (focus URL bar)', 'ctrl+w (close tab)') gives implied usage context for common scenarios. However, there is no explicit when-to-use versus desktop_type / desktop_click guidance, and no warning about which combinations are irreversible or disruptive.

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.