analyze_css_selectors
Parse inline, linked, or raw CSS to extract selectors and optionally match them against HTML, revealing which elements each selector targets.
Instructions
Parse inline, linked, or raw CSS with tinycss2 and optionally match selectors back onto HTML.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analyze_css_selectors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | ||
| html | No | ||
| limit | No | ||
| html_chars | No | ||
| match_html | No | ||
| source_url | No | ||
| text_chars | No | ||
| match_limit | No | ||
| max_size_bytes | No | ||
| document_handle | No | ||
| timeout_seconds | No | ||
| truncate_on_limit | No | ||
| include_match_html | No | ||
| include_inline_styles | No | ||
| only_hiding_selectors | No | ||
| fetch_linked_stylesheets | No | ||
| include_linked_stylesheets | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| warnings | No | ||
| selectors | No | ||
| source_url | No | ||
| stylesheets | No | ||
| document_handle | No | ||
| total_selectors | Yes | ||
| omitted_selectors | Yes | ||
| total_stylesheets | Yes | ||
| returned_selectors | Yes | ||
| hidden_selector_count | Yes | ||
| linked_stylesheet_urls | No |