Skip to main content
Glama
computer
by zznabil

Drag

drag
Destructive

Simulate pointer movement along a screenshot pixel path, optionally holding keys or modifiers, to perform GUI interactions on a window or desktop.

Instructions

Drag along a path of screenshot pixels, optionally holding keys/modifiers.

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": {
      "target": "<target>",
      "path": "<path>"
    },
    "name": "drag"
  }
}

Input Schema

NameRequiredDescriptionDefault
keysNoKeys held for the whole drag, e.g. ["space"].
pathYesPoints from start to end.
buttonNo"left" (default), "right" or "middle".
targetYesWindow id from list_windows, "desktop", or "display:<id>" / "display:active" / "display:all". Prefer a window id: window input runs in the background; desktop/display input drives the user's real pointer and keyboard.
takeoverNoOmit (default): background first; the server decides any takeover. true: activate the window and post real input now. false: background only, never take over.
modifiersNoModifier keys held during the click, e.g. ["shift"].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, readOnlyHint=false. The description adds only the optional key-holding behavior, which the schema already covers; it doesn't say what destruction is possible, whether the drag is atomic, or failure/timeout behavior. Modest value added.

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?

Single short sentence with zero waste, front-loaded with the action. Very terse for a destructive tool but structurally clean.

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

Completeness2/5

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

For a destructive, open-world input-injection tool with no output schema, the description says nothing about how to obtain coordinates, timing, or failure modes. The schema carries most weight, but behavioral completeness is well short of what a real-input tool warrants.

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% and richly documented, so baseline is high; description adds marginal context (keys held during the whole drag) which is already in schema. Doesn't add anything on path pacing or interpolation, but not required.

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?

Specific verb+resource: "Drag along a path of screenshot pixels" — clearly a pointer drag over an image coordinate path, distinguishable from click and move_mouse. Differentiation from siblings isn't explicit, but the operation is concrete.

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

Usage Guidelines2/5

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

No statement of when to use this versus click, move_mouse, or scroll, nor prerequisites for obtaining pixel coordinates (presumably from screenshot). The agent must infer that coordinates come from a screenshot.

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