browser_drag
Simulate human-like pointer drags along coordinate waypoints, pressing, moving, and releasing for multi-segment drags or signature pads. Generate precise strokes from snapshot coordinates.
Instructions
Press, move, and release the pointer along one or more strokes.
Each stroke is a list of [x, y] viewport-coordinate waypoints. The pointer travels to the first waypoint, presses, moves through the rest with human-like motion, and releases. Multiple strokes lift between each -- use this for signature pads or multi-segment drags.
Coordinates come from browser_snapshot's at: [x, y] values or
from inspecting the target element's bounding box.
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": {
"strokes": "<strokes>"
},
"name": "browser_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| browser | No | Defaults to `main`; `support` is the helper beside it. | |
| strokes | Yes |