Drag from one point to another on a canvas
qa_drag_pointDrag from one point to another with stepped pointer moves to move shapes, marquee selections, pan canvases, or draw boxes on canvas UIs that track pointer paths while the button is held.
Instructions
Press at one point, move, release at another — the other half of canvas work, and the half a click cannot express: moving a shape, marqueeing a selection, panning, drawing a box, dragging a handle. Without it an agent fakes a drag out of two clicks and changes something nobody asked for. The pointer is moved in STEPS between the two points (12 by default), because a single jump from start to end is not a drag to most canvas code — it tracks the pointer while the button is down, and one giant delta reads as a glitch or as nothing at all. The moves go to the element the drag STARTED on, which is what a browser does once a button is down. Same coordinates and the same honest limit as qa_click_point: CSS pixels from the top-left of the viewport, and isTrusted: false. Requires the one-time “Agent control” confirmation in the panel; without it the extension answers consent-required and does nothing.
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": {
"x": "<x>",
"y": "<y>",
"toX": "<toX>",
"toY": "<toY>"
},
"name": "qa_drag_point"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Start — CSS pixels from the LEFT of the viewport | |
| y | Yes | Start — CSS pixels from the TOP of the viewport | |
| toX | Yes | End — CSS pixels from the LEFT of the viewport | |
| toY | Yes | End — CSS pixels from the TOP of the viewport | |
| steps | No | How many pointermove events to send between the two points (2–60, default 12). More for a canvas that samples the path, fewer for a simple handle. | |
| tabId | No | Target tab (from qa_tabs); omit for the active tab |