Skip to main content
Glama
playwright-mcp-router

playwright-mcp-router

by huangzt

browser_drop

Destructive

Drop files or MIME-typed data onto a page element to simulate an external drag-and-drop action, enabling file upload and drag-drop workflow testing.

Instructions

Drop files or MIME-typed data onto an element, as if dragged from outside the page. At least one of "paths" or "data" must be provided.

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>",
      "target": "<target>"
    },
    "name": "browser_drop"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoData to drop, as a map of MIME type to string value (e.g. {"text/plain": "hello", "text/uri-list": "https://example.com"}).
colorNoOptional Chrome tab group color override for a newly created session.
pathsNoAbsolute paths to files to drop onto the element.
targetYesExact target element reference from the page snapshot, or a unique element selector
accountNoChrome account profile to use (defaults to 'default'). Configured accounts: 'default' (Isolated Browser).default
elementNoHuman-readable element description used to obtain permission to interact with the element
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=true, so the safety profile is covered externally. The description adds that the data originates from outside the page and that one of two input modes is mandatory, but says nothing about what the drop triggers, permission prompts tied to the 'element' parameter, or side effects on the page. With annotations carrying the risk signal, this is adequate but thin.

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?

Two short sentences, the core action front-loaded, and the required-input constraint immediately after — nothing extraneous and nothing buried.

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?

With 7 parameters, a nested MIME map, no output schema, and destructive/open-world annotations, the description covers the action and the input precondition but not the outcome (what the drop causes, e.g. upload or navigation) or the permission model implied by the 'element' parameter. It is minimally sufficient rather than complete.

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 description coverage is 100%, so the baseline is 3, and the description earns an extra point by stating a cross-parameter constraint that the schema does not enforce (only 'session' and 'target' are required, yet one of 'paths' or 'data' must be supplied). It does not explain how 'paths' and 'data' interact if both are given, which keeps it from a 5.

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 ('Drop files or MIME-typed data onto an element') and adds the qualifier 'as if dragged from outside the page,' which separates it from browser_drag (dragging existing page elements) and browser_file_upload. It does not name those siblings explicitly, so differentiation is implied rather than stated.

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 only implied: the agent must infer that this tool is for simulating an external drag-and-drop source rather than moving an in-page element. The one real constraint given ('At least one of "paths" or "data" must be provided') is useful but is a validity rule, not a when-to-use/when-not-to-use rule, and no alternative is named.

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