Skip to main content
Glama

Computer Drag

computer_drag
Destructive

Use this for a real drag-and-drop or selection gesture between verified native desktop elements or screen coordinates. Confirm the source and destination first; dropping can move files or change application state.

Input Schema

NameRequiredDescriptionDefault
xNoVirtual-desktop X coordinate used by click/scroll coordinate targeting.
yNoVirtual-desktop Y coordinate used by click/scroll coordinate targeting.
idNoElement id returned by ui_snapshot or ui_find. Linux ids are stable per-process accessibility paths and legacy linux:<index> ids remain accepted.
appNoLimit matching to an application/process name substring when available.
pidNoLimit matching to one owning process id when available.
nameNoAccessible name/title substring.
roleNoAccessible role such as Button, Edit, textbox or AXButton.
to_xNoDrag destination X coordinate.
to_yNoDrag destination Y coordinate.
labelNoCompact numeric label from the most recent ui_snapshot/ui_find; useful for repeated actions without repeating names or coordinates.
titleNoOptional browser page title substring or top-level window title when target=window.
to_idNoDestination semantic UI element id for action=drag.
buttonNoPointer button to use for click/down/up or drag gestures.
deviceYesReMCP device id returned by list_devices. Required for every device operation.
from_xNoDrag source X coordinate.
from_yNoDrag source Y coordinate.
targetNoOptional target type. auto prefers native accessibility, then browser DOM/CDP, then OCR/coordinates where supported. Use window for explicit top-level window focus/text/scroll targeting.
from_idNoSource semantic UI element id for action=drag.
hold_msNoDelay after pointer down before moving during action=drag.
ocr_textNoVisible text to find in rendered pixels for the OCR click fallback.
selectorNoCSS selector when the fallback target is a browser element.
window_idNoTop-level window id returned by list_windows when target=window.
duration_msNoDrag movement duration.
browser_textNoVisible browser text used only to locate a DOM target; for action=type, text remains the value to enter.
window_titleNoLimit matching to a top-level accessibility window/frame title substring when available.
automation_idNoWindows AutomationId when available.

Output Schema

NameRequiredDescriptionDefault
dataNoComputer action structured result for computer_action. Stable fields are declared explicitly; platform-specific fields may be added. Large results may return truncated/bytes/preview instead of the full payload.
textYesConcise human-readable result of the tool call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false and openWorldHint=true. The description reinforces this with concrete consequence language ('dropping can move files or change application state') and adds a verify-endpoints-first prerequisite that annotations cannot express — genuine added context, though it says nothing about failure modes, permissions, or what happens on an aborted drag.

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

Conciseness5/5

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

Two tight sentences, zero filler, with the action framing front-loaded before the risk note. Every sentence earns its place.

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?

An output schema exists and annotations cover the safety profile, lowering the bar. However, for a 26-parameter destructive gesture tool with two distinct targeting modes, the description omits how to specify source and destination consistently, leaving an agent to infer valid parameter combinations that the schema does not enforce via required fields beyond 'device'.

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 coverage is 100% across 26 parameters, so the schema carries the burden and a baseline 3 applies. The description adds the useful framing that endpoints may be semantic elements or raw screen coordinates, but never names the corresponding parameter pairs (from_id/to_id vs from_x/to_x/from_y/to_y), hold_ms/duration_ms gesture timing, or the target mode selector.

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?

The description states a specific verb (drag-and-drop / selection gesture) and scope (between native desktop elements or screen coordinates), which is much clearer than the bare tool name. It does not distinguish itself from close siblings such as drag_drop, pointer_down/pointer_move/pointer_up, or computer_select, so an agent cannot rule those out from the text alone.

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?

"Confirm the source and destination first" implies a precondition, and the warning about consequences hints at when caution is needed. But there is no explicit guidance on when to pick this over drag_drop or a manual pointer_down/move/up sequence, and no statement of what 'verified' means or how to verify.

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.

Resources