Drag
dragMove an element with a real pointer to reorder sortable lists, drop onto elements or coordinates, or set slider values in native and pointer-driven interfaces.
Instructions
Drags an element with a real pointer: presses, carries (scrolling under itself where needed) and lets go. Drop onto another element (to, with slot before/after/on for sortable lists), onto a point of the view (x, y), or set a slider (value). Works for native drag and drop and for pointer-driven libraries.
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": "drag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| to | No | An element id from a listing, such as a12. | |
| from | Yes | An element id from a listing, such as a12. | |
| slot | No | ||
| value | No | A range input's value to set. |