browser_css_styles
Inspect computed and inline CSS styles plus matched cascade rules for an element ref to diagnose styling and rendering issues.
Instructions
Inspect computed CSS styles, inline styles, and matched CSS cascade rules for an element ref from browser_snapshot.
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": {
"ref": "<ref>"
},
"name": "browser_css_styles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Element ref from browser_snapshot (e.g. 'e3'). | |
| element | No | Human-readable description of the target element. | |
| maxRules | No | Maximum number of matched CSS rules to return (default: 25). | |
| sessionId | No | Optional target browser session ID. If omitted, uses the currently active session (or auto-launches one). | |
| computedProperties | No | Additional kebab-case CSS property names to include in computed styles. | |
| includeMatchedRules | No | Include matched CSS selector rules from stylesheets via CDP (default: true). |