browser_drag
Simulate drag-and-drop by moving from one element to another, enabling AI agents to automate complex browser interactions.
Instructions
Drag from one element to another.
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": {
"startTarget": "<startTarget>",
"endTarget": "<endTarget>"
},
"name": "browser_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endTarget | Yes | ||
| endElement | No | ||
| startTarget | Yes | Element ref like e3 from a prior browser_snapshot, OR a raw Playwright selector (css=, xpath=, text=, role=). | |
| startElement | No |