Skip to main content
Glama

Drag and drop

browser_drag

Drag one element onto another using refs or locators to automate drag-and-drop actions in browser tests and workflows.

Instructions

Drag one element onto another. Use refs or locators for both.

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
toYes
fromYes
expectNoExpectSpec postconditions
pageIdNo
sessionNo
snapshotNoPage state returned after the action: diff (default), full, none

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the basic safety profile is covered. The description adds nothing beyond that: it does not say whether the drag is native HTML5 drag, whether it waits for the drop to settle, what errors surface on a non-draggable source, or that a page snapshot is returned afterwards.

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?

Two short sentences with zero filler, and the core action is front-loaded ahead of the parameter hint. The brevity is appropriate in form, though it edges toward under-specification rather than efficiency.

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?

Insufficient overall. With a deeply nested locator schema, two required inputs, an optional expectation array, session/page targeting, and no output schema, the description should explain at least the expect and snapshot parameters and the drop-success semantics; it covers none of these.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33% across 6 parameters, so the description must compensate and largely does not. It hints that both 'from' and 'to' accept refs or locators, but says nothing about the 'expect' postconditions array, 'pageId', 'session', or the 'snapshot' mode ('diff'/'full'/'none') that controls what the tool returns.

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 first sentence names a specific verb ('Drag') and resource pair ('one element onto another'), so an agent can tell this apart from browser_click or browser_hover. It stops short of explicitly naming the alternatives it replaces, which keeps it at 4 rather than 5.

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?

'Use refs or locators for both' is argument guidance, not usage guidance. There is no statement of when to prefer drag over alternative interaction tools, no preconditions (e.g. draggable source, visible drop target), and no failure caveats for an open-world browser action.

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