scroll
Perform pixel-precise or directional swipes on any widget in a live Flutter app to navigate its content.
Instructions
Scrolls or swipes a widget. Use dx/dy for pixel-precise scrolling, or direction/distance for named swipe gestures.
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": "scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | Horizontal scroll delta in pixels | |
| dy | No | Vertical scroll delta in pixels | |
| target | No | Target string (e.g. '#loginBtn', 'text="Submit"', 'type="ElevatedButton"', 'semanticsLabel="Username"') | |
| distance | No | Swipe distance in pixels when using direction (default 300) | |
| direction | No | Swipe direction (alternative to dx/dy). When set, dx/dy are computed automatically. | |
| timeout_ms | No | Implicit wait timeout in milliseconds before failing |