get_element_styles
Retrieve all CSS styles of an element, including computed styles, using a CSS selector.
Instructions
获取指定元素的所有CSS样式(包括计算后的样式)
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": {
"selector": "<selector>"
},
"name": "get_element_styles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS选择器,用于定位元素 | |
| includeComputed | No | 是否包含计算后的样式(默认:true) |