get_computed_style
Retrieve computed CSS property values from web elements using selectors. Returns actual rendered styles for properties like background-color, font-family, or display to verify visual presentation.
Instructions
Read computed CSS property values from the first element matching a selector. Returns { exists, styles } where styles is an object mapping each requested property to its computed value. Example properties: "background-color", "font-family", "display".
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>",
"properties": "<properties>"
},
"name": "get_computed_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | ||
| properties | Yes | Array of CSS property names to read. |