Skip to main content
Glama

browser_drag

Drags one page element to another using source and destination snapshot refs, enabling reliable drag-and-drop automation in browser sessions.

Instructions

Perform drag and drop between two elements identified by their snapshot refs.

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": {
      "startRef": "<startRef>",
      "endRef": "<endRef>"
    },
    "name": "browser_drag"
  }
}

Input Schema

NameRequiredDescriptionDefault
endRefYesExact destination element ref from the page snapshot.
startRefYesExact source element ref from the page snapshot.
sessionIdNoOptional target browser session ID. If omitted, uses the currently active session (or auto-launches one).
endElementNoHuman-readable description of destination element.
startElementNoHuman-readable description of source element.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and does not meet it. It does not disclose whether elements are scrolled into view, whether actionability/waiting is performed, what happens if a ref is stale or missing, or whether the drag dispatches HTML5 drag events versus pointer moves.

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?

A single front-loaded sentence with no filler, and the key concept (snapshot refs) appears immediately. It is efficient, though its brevity is also part of the under-specification problem captured elsewhere.

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?

This is a 5-parameter interactive browser action with no annotations and no output schema, so the description must cover prerequisites, failure behavior, and session handling. One sentence about refs leaves the agent without guidance on how the action actually executes or what it returns on success/failure.

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 startRef and endRef are already documented as exact refs from the page snapshot, and the description only restates that. It adds no meaning about the optional sessionId (session targeting/auto-launch) or the human-readable startElement/endElement fields.

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 (drag and drop) and a specific resource (two elements identified by snapshot refs), which is clearly distinct from siblings like browser_click or browser_hover. It stops short of naming any sibling or explaining how drag differs from a click-and-hold sequence, so it is clear but not fully differentiated.

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 phrase 'identified by their snapshot refs' implies the prerequisite that a browser_snapshot must be taken first to obtain refs, but this is only implied. There is no statement of when to prefer this over browser_click/browser_hover or what to do if the drag fails.

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