Skip to main content
Glama

OpenFactory

desktop_drag

Drag-and-drop on your desktop: press at (x, y), move to (end_x, end_y), release.

Use desktop_screenshot first to get the source element's center, then pick a drop point. Good for moving a graph/canvas node, reordering a list, dragging a slider, or dropping one item onto another.

PANNING: on an interactive canvas — a node graph (React Flow topology), a map (Google Maps), a diagram, an image viewer — drag across EMPTY canvas space (not on a node/marker) to PAN the view. If part of what you want is off-screen, pan toward it instead of assuming it isn't there. Pair with scroll-to-zoom (see desktop_interact's scroll action) to navigate large canvases: zoom out to get an overview, pan to the region of interest, zoom in to act.

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>",
      "x": "<x>",
      "y": "<y>",
      "end_x": "<end_x>",
      "end_y": "<end_y>"
    },
    "name": "desktop_drag"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesStart X — where to grab (from the element's center[0])
yYesStart Y — where to grab (from the element's center[1])
end_xYesEnd X — where to drop
end_yYesEnd Y — where to drop
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.
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 the drop before screenshotting (default 0.3). Increase for drops that animate/relayout.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the input-event sequence and that the tool captures a screenshot after the drop (reinforced by screenshot_delay advice to 'increase for drops that animate/relayout'), but says nothing about failure modes, what happens if the drop misses, or permission/VM requirements. Adequate but not rich.

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?

Front-loaded with the core action, then a labeled PANNING block — good structure and zero filler. The panning paragraph is longer than strictly necessary for a drag tool, but its content is genuinely useful and correctly scoped.

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 10-parameter, no-output-schema tool, the description covers the primary invocation path and an important secondary mode (panning) plus timing advice. It does not discuss response_mode/response handling or the VM-selection parameters, but those are documented in the schema, so the gap is minor.

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 baseline is 3. The description reinforces the coordinate semantics (start point from the element's center, end point is the drop target) but adds no syntax or interpretation beyond what the schema already states for x/y/end_x/end_y.

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?

States a concrete verb and mechanism: 'press at (x, y), move to (end_x, end_y), release', which unambiguously separates it from desktop_click (single point) and desktop_interact. The coordinate contract is spelled out in the first sentence.

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

Usage Guidelines5/5

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

Gives explicit prerequisites ('Use desktop_screenshot first to get the source element's center'), enumerates concrete use cases (node move, list reorder, slider, drop-onto-item), and adds a distinct panning mode with a rule for when to pan vs. assume off-screen content. It also names the pairing with scroll-to-zoom via desktop_interact's scroll action.

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.