Component inventory
inventory_componentsInventory the components in a stylesheet and, if given, its markup. Pass css and optionally html (free), or a public url (Pro, which also reads the page markup). Classes are grouped into roles (button, card, input, badge, nav, alert, modal, avatar, tooltip) from their names, then variants are found from modifier classes (btn--primary, btn-lg, btn.primary). Reports each component family with its base properties and variants, inconsistencies across the same role (different corner radius, padding, font size, weight or height between families, or between variants that should match; size and shape variants are allowed to differ), naming collisions (btn and button both defined, for example) and properties set twice at the same level. With markup it also counts instances, common class combinations, inner structures, classes used but never styled and unclassed native buttons.
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": "inventory_components"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | CSS text to read (a stylesheet, or several concatenated). Free up to 100,000 characters; Pro up to 2,000,000. | |
| url | No | Pro only. Public page whose linked and inline stylesheets are fetched (up to 12 sheets, 5 MB). | |
| html | No | Optional page markup. Any <style> blocks in it are read as CSS too. |