inspect_styles
Inspect computed CSS styles and box model properties for a selector to debug layout issues, check flex/grid behavior, and verify spacing, sizing, overflow, and z-index.
Instructions
Inspect computed CSS styles and box model (display, position, width/height, margin, padding, flex/grid, overflow, z-index, font-size) for a 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>"
},
"name": "inspect_styles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector of the element | |
| properties | No | Specific CSS properties to inspect (e.g. ["display", "flex-direction", "width", "overflow"]). If omitted, returns key layout & box model properties. |