mouse_drag
Drag the mouse cursor between specified coordinates to interact with sliders, perform drag-and-drop operations, draw on canvases, or resize windows with optional safety guards and window focusing.
Instructions
Click and drag from (startX, startY) to (endX, endY) holding the left mouse button — for sliders, drag-and-drop, canvas drawing, and window resizing. windowTitle optionally focuses before drag. Pass lensId (from perception_register) to run safety guards (identity stable, foreground, coordinates in rect) before dragging and receive post.perception state feedback without a screenshot. Caveats: Left button only; does not support right-drag or middle-drag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| startX | Yes | ||
| startY | Yes | ||
| endX | Yes | ||
| endY | Yes | ||
| narrate | No | Narration level. rich includes UIA or browser state diff when supported. | minimal |
| speed | No | Cursor movement speed in px/sec. 0 = instant. | |
| homing | No | Enable homing correction if the target window moved. | |
| windowTitle | No | Partial title of the target window. | |
| lensId | No | Optional perception lens ID. Guards and envelope same as mouse_click. |