get-element-styles
Inspect computed CSS properties of a specific element using a CSS selector and property list. Enables real-time style debugging within Vite's HMR workflow.
Instructions
Retrieves style information of a specific element
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>",
"styleProperties": "<styleProperties>"
},
"name": "get-element-styles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector of the element to inspect | |
| styleProperties | Yes | Array of style property names to retrieve (e.g., ['color', 'fontSize', 'backgroundColor']) |