get_computed_styles
Get the final computed CSS styles (property: value pairs) for an element on a live page by specifying a CSS selector.
Instructions
获取元素所有计算样式(浏览器最终计算值),返回完整的 property: value 键值对
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_computed_styles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS 选择器 |