Scroll to element
scroll_to_selectorScrolls the first element matching a CSS selector into the center of the viewport, preparing it for interaction. Reports whether a match was found.
Instructions
Scroll the first element matching a CSS selector into view, centered.
More precise than scroll_page when you already know what you are looking for, and the usual preparation for click_at, which needs its target inside the viewport.
click scrolls to its own target, so this is unnecessary before it. Reports
whether anything matched instead of failing silently.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| browser | No | Which browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name. | default |
| selector | Yes | CSS selector of the element to scroll to; the first match wins. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |