scroll_to
Swipes a screen until a specified element becomes visible, then returns its tap coordinates. Skips swiping when the element is already on screen.
Instructions
Swipe until an element becomes visible (up to max_swipes), then report its tap coordinates. No-op if it is already on screen.
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_to"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Visible text to look for | |
| direction | No | down | up | |
| max_swipes | No | Swipes to attempt (default 6) | |
| resource_id | No | resource-id substring | |
| content_desc | No | content-desc substring |