element_scroll_width
Retrieve the scrollable width of an element in a WeChat mini-program to measure content overflow and adjust layout accordingly.
Instructions
获取元素可滚动宽度(scrollWidth)
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": {
"element_id": "<element_id>"
},
"name": "element_scroll_width"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element_id | Yes |