Scroll to element
scroll_to_selectorScrolls the first element matching a CSS selector into view, centered. Ensures the element is in the viewport for interaction and reports if 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 |
|---|---|---|---|
| selector | Yes | CSS selector of the element to scroll to; the first match wins. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |