session_drag
Simulate human-like mouse drags between viewport positions to move drag targets, select canvas elements, or solve captcha sliders while avoiding anti-bot detection. Option for exact linear movement.
Instructions
Drag the mouse from one viewport position to another: press at from, steps mousemove events, release at to. The trajectory is humanized by default (eased velocity, wobble, jittered timing, overshoot) — the shapes anti-bot checks score for; pass humanize:false for exact linear interpolation. Moves AMarker-style drag targets, canvas selections and captcha sliders that only track while the pointer travels.
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": {
"session_id": "<session_id>",
"from": "<from>",
"to": "<to>"
},
"name": "session_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Where to release it | |
| from | Yes | Where to press the mouse button down | |
| steps | No | Interpolated mousemove events between from and to. Default: 24 with humanize on, 10 without | |
| delay_ms | No | Mean delay between moves in ms (default 18 humanized / 30 linear) — per-step timing is jittered around this when humanizing | |
| humanize | No | Humanize the trajectory: minimum-jerk easing, perpendicular wobble, timing jitter, grip/settle pauses, occasional hesitation and overshoot-and-correct. Set false when a test/tool needs exact linear interpolation. Default: true | |
| session_id | Yes | Session ID |