Anchor Browser icon

Anchor Browser

Interact with Anchor Browser API for browser automation and control

OS Level Control → Drag and Drop

AI-generated

Summary

Perform a drag and drop mouse action within an active browser session by specifying start and end coordinates and the mouse button to use.

Inputs

  • Base URL — The base URL for the Anchor Browser API, defaulting to https://api.anchorbrowser.io.
  • Session ID (required) — The ID of the active browser session to target (required).
  • Drag and Drop Configuration (required) — Coordinates and mouse button configuration for the drag and drop action, including startX, startY, endX, endY, and optional button (left, middle, right; defaults to left).

Output shape

a JSON object with the result of the drag and drop operation.

Operation requires a valid Session ID and all start and end coordinates (startX, startY, endX, endY) to be specified. The node sends a POST request to the Anchor Browser API and returns the API response directly. Errors are thrown if required fields are missing.

Examples

Example 1: Dragging an element from coordinate (100,200) to (300,400) using left mouse button

Provide the active Session ID and configure dragDropConfig with startX=100, startY=200, endX=300, endY=400, and button='left'.

Discussion