pilot_drag
Drag an element from a source and drop it onto a target to reorder items or interact with drag-and-drop UI elements.
Instructions
Drag one element and drop it onto another element on the page. Use when the user wants to move an element, reorder items in a drag-and-drop list, or interact with a drag-and-drop UI.
Parameters:
start_ref: The source element reference from snapshot (e.g., "@e3") or CSS selector to drag from
end_ref: The target element reference from snapshot (e.g., "@e5") or CSS selector to drop onto
Returns: Confirmation with source and target refs.
Errors:
"Element not found": Either ref is stale. Run pilot_snapshot to get fresh refs.
Timeout (5s): The drag operation could not be completed. The elements may not support drag-and-drop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_ref | Yes | Source element ref or CSS selector | |
| end_ref | Yes | Target element ref or CSS selector |