scroll_to
Scroll a specific element into the viewport using a snapshot reference or CSS selector. Control vertical alignment with start, center, end, or nearest, and choose between smooth or instant scroll.
Instructions
Smooth-scroll a specific element into viewport.
Args:
ref: snapshot ref (e.g. "e7") from browser_snapshot
selector: CSS selector alternative
block: "start" | "center" | "end" | "nearest" — vertical alignment
smooth: CSS smooth scroll (default) vs instant jump
Works even if element is far off-screen (pages of scroll away).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| selector | No | ||
| block | No | center | |
| smooth | No |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |