scroll_to_element
Scrolls a page to bring a specific UI element into view by searching for its text, then swiping up or down until the element appears or the timeout is reached.
Instructions
Scroll the page to bring a specific UI element into view. Tries to find the element by text, then swipes up/down until it becomes visible or timeout is reached.
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": {
"text": "<text>"
},
"name": "scroll_to_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text content to search for | |
| serial | No | Device serial number | |
| direction | No | Scroll direction to find the element | down |
| maxScrolls | No | Maximum scroll attempts |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| found | Yes | ||
| message | Yes |