get_css_styles
Explains why an element looks as it does by listing matching CSS rules in priority order, with selectors, stylesheets, at-rules, and computed values.
Instructions
Explains why an element looks as it does: the CSS rules matching it, highest priority first (style attribute, then rules), each with selector, stylesheet URL (the page's for an inline ), 0-based line and column, enclosing at-rules (@media, @container, @layer, @supports) and declarations marked important, invalid or overridden; its pseudo-elements; and the computed values of the declared properties. Options add the ancestors' rules (nearest first) and the browser's, or narrow to some properties (declarations included). Firefox reads them with its inspector (needs its debugger port).
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": "get_css_styles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | Default: the active tab. | |
| selector | Yes | The element (CSS, 'host >>> inner' or a snapshot ref). | |
| max_rules | No | Most rules listed, 1 to 200. Default: 30. | |
| properties | No | Only these properties (e.g. ['color', 'margin']); a shorthand also matches its longhands. | |
| instance_id | No | Default: 'default'. | |
| include_inherited | No | Also its ancestors' rules (what it inherits). Default: false. | |
| include_user_agent | No | The browser's own rules too. Default: false. |