滚动到页面元素
scroll_toLocate any element by CSS selector and scroll it to the center of the viewport, then return its updated position coordinates for precise navigation.
Instructions
通过 CSS 选择器找到元素并滚动到可视区域中央(scrollIntoView),返回滚动后的位置信息。
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | 操作说明:展示给页面用户的自然语言描述(用户会在页面气泡的操作记录里看到),用用户的语言填写,建议始终提供 | |
| pageId | No | 目标页面 id(单页时可省略) | |
| selector | Yes | CSS 选择器 |