browser_drag
Drag a web element to a target selector or pixel offset. Enables automated drag-and-drop interactions for browser control.
Instructions
拖拽元素到目标位置。
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": {
"selector": "<selector>"
},
"name": "browser_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xOffset | No | 水平偏移像素(与 targetSelector 二选一) | |
| yOffset | No | 垂直偏移像素(与 targetSelector 二选一) | |
| selector | Yes | 要拖拽的元素的 CSS 选择器 | |
| targetSelector | No | 目标放置位置的 CSS 选择器 |