Analyze HTML and CSS
analyze_htmlRender supplied HTML with optional CSS in Chromium. Extract design tokens, assets, and layout data from generated markup, offline pages, and tests.
Instructions
Render supplied HTML and optional CSS in Chromium, then extract the same design system data as analyze_site. Useful for generated markup, offline pages, and tests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Optional CSS to inject into the document. | |
| html | Yes | HTML document or fragment to render. | |
| baseUrl | No | Optional base URL used to resolve relative assets. | |
| timeoutMs | No | ||
| maxElements | No | Maximum DOM elements to analyze. | |
| includeHidden | No | Include elements hidden by CSS or layout. | |
| viewportWidth | No | Browser viewport width in CSS pixels. | |
| viewportHeight | No | Browser viewport height in CSS pixels. | |
| maxComponentExamples | No | Example selectors returned for each component type. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |