Spacing audit
audit_spacingAudit spacing in a stylesheet. Pass css (free) or a public url (Pro). Reads margin, padding and gap properties (shorthands split into their parts; rem and em converted with the root size the CSS sets; auto and 0 skipped), then reports the detected base unit (8 if 85% of uses fit, else 4, else none with the best fit), the number of distinct values against a budget of 12, off-grid values with counts, gaps between steps, values used once, the split between margin, padding and gap, and a proposed scale with an old-to-new table. Percent, vw, calc() and clamp() values are counted as fluid and left out of the scale.
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": "audit_spacing"
}
}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). |