audit_typography
Audit typographic scale, line-height consistency, and weight ladders on a rendered page or text-node snapshot. Identify off-scale ratios and outliers, then receive actionable fixes with severity.
Instructions
Audit the typographic SCALE of a rendered page (pass url) or a pre-collected snapshot of text nodes. Emits a focused report: (a) MODULAR SCALE — detects the dominant ratio (~1.2/1.25/1.333/1.5) across distinct font sizes and flags off-scale outliers; (b) LINE-HEIGHT CONSISTENCY — unitless lh/fs ratio per node, identifies the body rhythm and flags outliers; (c) WEIGHT LADDER — distinct weights, flags >4 weights or non-standard CSS values. Returns scale, line_height, weight_ladder, nodes_analyzed, and findings[{rule,severity,selector,message,fix}]. Goes beyond audit_page's pass/fail typography checks. url mode requires headless chromium.
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_typography"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to render and measure (http/https or file://). Requires headless chromium. | |
| nodes | No | Pre-collected text nodes to analyze without rendering. |