scroll-to-element
Scrolls in a specified direction to make a target element visible in mobile app automation, using element selectors and configurable scroll limits.
Instructions
Scroll until an element becomes visible
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": {
"selector": "<selector>"
},
"name": "scroll-to-element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | Element selector to scroll to (e.g., xpath) | |
| direction | No | Direction to scroll (default: down) | |
| strategy | No | Selector strategy: xpath, id, accessibility id, class name (default: xpath) | |
| maxScrolls | No | Maximum number of scroll attempts (default: 10) |