drag
Press on element index or page point (x, y), move by (dx, dy) CSS pixels along a human path, and release.
Instructions
Press on element index or page point (x, y), move by
(dx, dy) CSS pixels along a human path, and release.
Use it for slider challenges ("slide to verify", puzzle sliders) and range
controls. Aim the knob with screenshot() (its pixels are CSS pixels).
For a puzzle slider, dx is the distance from the piece to the gap.
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": {
"dx": "<dx>"
},
"name": "drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| dx | Yes | ||
| dy | No | ||
| index | No | ||
| include_snapshot | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |