Drag with the mouse
nvda_mouse_dragPresses, moves, and releases the left mouse button between two points to drag canvas sliders, faders, or other items; requires user permission.
Instructions
Press the left button at one point, move to another and release it: to move a fader or slider drawn on a canvas, or drag something. Both points are counted the same way (from the control, the window, or the screen). Needs the user's permission, like key presses.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"to_x": "<to_x>",
"to_y": "<to_y>"
},
"name": "nvda_mouse_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Pixels from the left: of the control or window, or of the screen when neither is given. | |
| y | No | Pixels from the top: of the control or window, or of the screen when neither is given. | |
| id | No | A control from nvda_find_objects. Without x and y, its middle; with them, a point counted from its top left corner, such as a knob in a plugin's canvas. | |
| to_x | Yes | Where to drag to, counted the same way as x. | |
| to_y | Yes | Where to drag to, counted the same way as y. | |
| window | No | Instead of id, a window handle from nvda_list_windows; x and y count from its top left. | |
| settle_ms | No | Stop listening once NVDA has been quiet this long. | |
| timeout_ms | No | Stop listening, or waiting for until_speech, after this long in total. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |