拖拽
browser_dragDrags a starting element onto another element or by pixel offsets to operate sliders, sorting, and other draggable controls.
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": {
"from": "<from>"
},
"name": "browser_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | 没有 to 时,相对起点向右的像素,向左用负数 | |
| dy | No | 没有 to 时,相对起点向下的像素,向上用负数 | |
| to | No | 拖动终点的元素编号 | |
| from | Yes | 拖动起点的元素编号 |