sincecutoff.com
← all changes

playwright-mcp browser_drop exposes Locator.drop

Introduced 2026-04-27 · score 0.96

HOW TO USE IT

When a browser task requires dropping files or MIME-typed data onto an element, call `browser_drop` with its target and at least one of `paths` or `data`. Use `browser_drag` for dragging between page elements.

{"target":"<target-reference-or-unique-selector>","data":{"text/plain":"<text-to-drop>"}}
{"target":"<target-reference-or-unique-selector>","paths":["<absolute-file-path>"]}

WHY THIS HELPS

Complete a drag-and-drop operation onto a target in a browser session.

REQUIREMENTS AND LIMITATIONS

  • Version: v0.0.71
  • target (required): Exact target reference from the page snapshot or a unique element selector.
  • paths (required): Optional array of absolute file paths; provide this or `data`.
  • data (required): Optional MIME-type-to-string map; provide this or `paths`.
  • element: Human-readable element description used to obtain permission to interact with the target.
  • Prerequisite: Node.js 18 or newer and an MCP client; install and configure the Playwright MCP server.
  • Docs conflict: `browser_drop` is documented for files or MIME-typed data dragged from outside the page. For a drag between two page elements, the v0.0.71 docs specify `browser_drag`. The card’s broader wording could imply either operation.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card