drag_and_drop
Drags a widget from a starting location to a target widget or offset within a live Flutter app, enabling automated drag-and-drop interactions without pre-written test code.
Instructions
Drags from a source widget to a target widget (or to an offset).
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_and_drop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | Optional horizontal drag delta | |
| dy | No | Optional vertical drag delta | |
| to | No | Optional target string for the destination widget | |
| from | Yes | Target string for the starting widget | |
| duration_ms | No | Optional duration of the drag animation |