scroll_element
Scrolls a specific UI element in a chosen direction for precise pixel distance control, enabling targeted navigation within Android app interfaces.
Instructions
Scroll a specific UI element in the given direction for a specified distance.
Args:
element: Either an integer (element index from annotated screenshot) or string (element name)
direction: Direction to scroll - 'up', 'down', 'left', 'right'
distance: Distance to scroll in pixels (default: 200)
duration: Duration of scroll gesture in milliseconds (default: 300)
device_id: Optional device ID to target specific device/emulator
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | No | ||
| direction | Yes | ||
| distance | No | ||
| duration | No | ||
| element | Yes |
Input Schema (JSON Schema)
{
"properties": {
"device_id": {
"default": null,
"title": "Device Id",
"type": "string"
},
"direction": {
"title": "Direction",
"type": "string"
},
"distance": {
"default": 200,
"title": "Distance",
"type": "integer"
},
"duration": {
"default": 300,
"title": "Duration",
"type": "integer"
},
"element": {
"title": "element",
"type": "string"
}
},
"required": [
"element",
"direction"
],
"title": "scroll_elementArguments",
"type": "object"
}