scroll_to_element
Bring a page element into view by scrolling to it with CSS, XPath, ID, name, tag, class, or link selectors and an optional timeout.
Instructions
Scroll the page to bring an element into view.
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_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Strategy | css |
| timeout | No | Seconds | |
| selector | Yes | Locator value |