Drag
dragPress at one point and release at another to move or reorder items, adjust sliders, or select ranges, using element IDs or screen coordinates.
Instructions
Press at one point, move, and release at another to drag and drop, move a slider, or select a range. Give each end as an element id or as screen coordinates; the two ends may use different forms. A drop can move or reorder items in the app, so verify the result with get_app_state. On macOS a drag must stay inside one app window and never moves the user's pointer; on Windows and Linux most drags use real mouse input, which moves the user's pointer (the result then says via cursor).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_x | No | Screen x to release at, used with to_y when no to_element_id is given | |
| to_y | No | Screen y to release at, used with to_x when no to_element_id is given | |
| from_x | No | Screen x to start at, used with from_y when no from_element_id is given | |
| from_y | No | Screen y to start at, used with from_x when no from_element_id is given | |
| state_query | No | With return_state, list only elements whose role, label or value contains this text, like get_app_state's query | |
| return_state | No | After acting, wait briefly for the UI to settle and append a fresh get_app_state of the app you last read, so you can check the result and pick the next target in the same call. Its ids replace every earlier id. | |
| to_element_id | No | Element to release on, from get_app_state | |
| from_element_id | No | Element to start the drag on, from get_app_state |