Scroll an element into view (reliable — not simulated)
scroll_to_elementScroll a page until a target element is visible using the accessibility API's scroll-into-view action, reliably reaching below-the-fold content when simulated wheel or keyboard scrolling is ignored.
Instructions
Scroll the page so an element (found by text/role, or a ref from read_page) is visible, using the accessibility API's own scroll-into-view action rather than simulating wheel/keyboard scrolling. This is the reliable way to reach below-the-fold content — some pages silently ignore simulated wheel/Page_Down events (e.g. pinned image galleries) but this always works. Also useful to bring a nearby landmark into view before using screenshot on content that itself has no accessible representation (e.g. a canvas-based size picker) — scroll to a labeled heading near it, then screenshot.
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_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| role | No | ||
| text | No | ||
| window_address | No |