browser_drag
Drags between precise viewport coordinates to simulate pointer movement and drag events for canvas, slider, or drag-and-drop interactions.
Instructions
Drag between exact viewport coordinates. DOM mode dispatches pointer and drag events.
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": {
"tabId": "<tabId>",
"from": "<from>",
"to": "<to>"
},
"name": "browser_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| tabId | Yes | Tab id from browser_tabs. | |
| expect | No | Post-action condition. Default timeout is 1.2 seconds in visible pages and 3 seconds in hidden pages. A mismatch does not undo the action; inspect before retrying. | |
| browser | No | Browser id from browser_list, or chrome/firefox when only one instance matches. | |
| frameId | No | Frame id from browser_frames; defaults to top frame. | |
| inputMode | No | Auto uses trusted Chrome text insertion only in the active foreground tab; DOM otherwise. Pointer actions and keys always use DOM. | auto |