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.
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": {
"selector": "<selector>"
},
"name": "scroll_to_selector"
}
}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 |