Skip to main content
Glama

browser_drag

Drag one element onto another using real mouse motion, including intermediate moves, so HTML5 drag-and-drop and pointer-event libraries register the drag.

Instructions

Drag one element onto another (refs from browser_snapshot) with real mouse motion — the intermediate moves are what make HTML5 drag-and-drop and pointer-event libraries believe the drag started.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "browser_drag"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesWhere to drop — ref or CSS selector
fromYesWhat to drag — ref or CSS selector
stepsNoIntermediate moves (default 12)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.5.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden, and it does meaningful work: it discloses that the drag is executed as real mouse motion with intermediate moves, and explains why that matters for drag-detection libraries. It remains silent on failure modes (element not found, drop target detached), whether elements are scrolled into view, and whether the call is synchronous or waits for a drop event.

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?

A single sentence front-loads the action and resource, then uses the trailing clause to justify the mechanism rather than pad it. Every phrase, including the parenthetical pointing at browser_snapshot, carries actionable information.

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 simple three-parameter tool with no output schema, the description covers purpose, identifier source, and execution mechanism adequately. The remaining gap is behavioral edge cases — visibility/in-viewport requirements and failure behavior — which matter for a real-mouse simulation tool but are minor against its overall simplicity.

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%, so the schema already documents 'from', 'to', and the 'steps' default of 12. The description adds little parameter-level meaning beyond nudging toward refs from browser_snapshot, and says nothing about how 'steps' should be tuned or when a higher count is needed.

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 ('Drag one element onto another') and names the source of the identifiers ('refs from browser_snapshot'), so the agent knows exactly what the tool does. It does not need to distinguish itself from any true sibling alternative, since no other drag tool is present, but it also does not explicitly rule out browser_click or browser_hover as substitutes.

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?

Usage is implied rather than stated: the mention of HTML5 drag-and-drop and pointer-event libraries hints at the scenario, and 'refs from browser_snapshot' reveals a prerequisite. There is no explicit when-to-use/when-not guidance, no statement of what to do if a simple click or hover would suffice, and no note about viewport or visibility requirements before calling.

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