scrollToBottom
Scroll to the bottom of a webpage or a specific element using Playwright, with optional timeout for snapshot capture during automated browser interactions.
Instructions
滚动到页面或元素底部
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": {
"pageId": "<pageId>"
},
"name": "scrollToBottom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | 页面ID | |
| selector | No | 元素的xp引用值,如果不提供则滚动页面到底部 | |
| waitForTimeout | No | 操作后等待获取快照的延迟时间(毫秒,默认2000) |