element_style
Get the computed style value (e.g., color, fontSize) of a page element in a WeChat Mini Program by specifying its element ID and the style property name.
Instructions
获取元素样式值(如 color / fontSize)
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": "<name>"
},
"name": "element_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 样式名,如 color / fontSize | |
| element_id | Yes |