get_computed_style
Retrieve computed CSS values for specified properties on the first element matching a selector, helping inspect actual rendered styles in Chrome.
Instructions
Get computed CSS values for the given properties on the first element matching selector.
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 | CSS selector for the target element | |
| properties | Yes | CSS property names to return (kebab-case or camelCase) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| styles | Yes | Map of property name → computed value. Keys match the input `properties` verbatim (case preserved). |