Drag and drop
dragMove an element to a target by simulating mouse press, move, and release. Helps automate sortable lists and sliders that rely on mouse events in undetected Chrome.
Instructions
Drag one element onto another (press, move, release).
Both uids must come from the same take_snapshot. Both ends are scrolled into view and hit-tested first, and the pointer is moved in steps with the button held, which is what mouse-driven sortables and sliders listen for.
This drives the mouse. Native HTML5 drag-and-drop — the dataTransfer kind — is a separate protocol that a synthetic mouse does not trigger in Chrome; if nothing happens on a page that uses it, that is why.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_uid | Yes | uid of the element to drop onto, from the most recent take_snapshot. | |
| browser | No | Which browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name. | default |
| from_uid | Yes | uid of the element to pick up, from the most recent take_snapshot. | |
| include_snapshot | No | Append a fresh page snapshot to the response. Worth it when this action changes the page and take_snapshot would be your next call anyway — it saves a round trip, at the cost of a much larger response. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |