element_drag
Drag an element to a target element or by pixel offset. Adjust drag speed with duration parameter.
Instructions
Drag an element to a target element or by pixel offset.
Provide either target_locator/target_element_id (drag to target) or
offset_x/offset_y (drag by pixels). Duration controls drag speed in seconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "element_drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | ||
| tab_id | No | ||
| locator | No | ||
| duration | No | ||
| offset_x | No | ||
| offset_y | No | ||
| element_id | No | ||
| target_locator | No | ||
| target_element_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |