滚动
web_scrollScroll web pages or specific elements by direction, jump to top/bottom, or bring a selector into view. Handles both full-page and element-level scrolling without network requests.
Instructions
滚动页面或元素。direction=into_view 时将元素滚动到视野中央;提供 selector 时在元素内部滚动(或先将其带入视野);未提供 selector 时滚动整个页面。
权限说明:仅改变滚动位置,不产生网络请求。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | 步进像素,默认 600;top/bottom/into_view 忽略 | |
| timeout | No | 超时毫秒数,默认 10 秒,0 表示不限制 | |
| selector | No | 目标元素(滚动其内部或将其带入视野) | |
| direction | Yes | 滚动方向;top/bottom 直达首尾;into_view 将元素滚入视野 |