Audit DOM Bloat & Tree Depth
audit_dom_bloatAnalyzes HTML tree structure of a public URL to report total DOM nodes, maximum depth, div ratio, and Lighthouse threshold violations. Recommends component chunking and shallow nesting fixes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "audit_dom_bloat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The target website URL including protocol (e.g. https://example.com). | |
| response_format | No | Output format: 'markdown' for human-readable diagnostic or 'json' for machine processing. | markdown |