page_scroll_top
Get the vertical scroll offset (scrollTop) of a WeChat mini-program page via its page ID, enabling scroll position checks and state restoration.
Instructions
获取页面滚动位置(scrollTop)
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": {
"page_id": "<page_id>"
},
"name": "page_scroll_top"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes |