Skip to main content
Glama
playwright-mcp-router

playwright-mcp-router

by huangzt

browser_drag

Destructive

Drag and drop between two page elements in an isolated browser session to automate UI interactions that require moving items.

Instructions

Perform drag and drop between two elements

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": {
      "session": "<session>",
      "startTarget": "<startTarget>",
      "endTarget": "<endTarget>"
    },
    "name": "browser_drag"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorNoOptional Chrome tab group color override for a newly created session.
accountNoChrome account profile to use (defaults to 'default'). Configured accounts: 'default' (Isolated Browser).default
sessionYesRequired isolated session name (also displayed as the Chrome tab group title), e.g. "T1867-api-debug" or "home-css". Use a unique, descriptive task name per conversation so concurrent agents never hijack each other's active tab.
endTargetYesExact target element reference from the page snapshot, or a unique element selector
endElementNoHuman-readable target element description used to obtain the permission to interact with the element
startTargetYesExact target element reference from the page snapshot, or a unique element selector
startElementNoHuman-readable source element description used to obtain the permission to interact with the element

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, so the description only needs to add context — but it adds none: nothing about what a drag can trigger (DnD-based uploads, reordering, irreversible UI state), no permission/confirmation note despite the schema's "permission to interact" wording, and no mention that a live isolated session is required.

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 or redundancy. It is terse to the point of under-specification, but nothing in it is wasted.

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 browser interaction with 7 parameters, a required session, and no output schema, one sentence is insufficient: it omits the snapshot-reference workflow, session isolation requirements, and the consequences of a failed or partially completed drag.

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 description coverage is 100%, so every parameter (session, startTarget, endTarget, element labels, account, color) is already documented in structured fields. The description adds no extra meaning about how source/target references should be formed or what happens if they are stale, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and outcome ("Perform drag and drop between two elements"), so the action is identifiable. However it offers no differentiation from siblings such as browser_drop, browser_click, or browser_hover, which an agent must distinguish by name alone.

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?

There is no when-to-use guidance, no prerequisites (e.g. that element references come from a page snapshot), and no mention of alternatives like browser_drop for dropping files or browser_click for simple interactions.

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