get_computed_style
Read computed CSS property values for elements matching a selector. Verify colors, fonts, spacing, and display without inspecting screenshots.
Instructions
Read the actual rendered CSS values (after stylesheets and inheritance) for the requested properties on matching elements. Returns per-element property→value maps. Use to verify colors, fonts, spacing, display, or opacity programmatically instead of eyeballing a screenshot.
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": {
"session_id": "<session_id>",
"selector": "<selector>",
"properties": "<properties>"
},
"name": "get_computed_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector | |
| properties | Yes | CSS properties to read (e.g. ['color', 'font-size', 'display', 'opacity', 'background-color']) | |
| session_id | Yes | Session ID | |
| max_results | No | Max elements to check (default: 10) |