perf_audit
Analyze component performance metrics including DOM element count, tree depth, render time, and script/stylesheet count to identify bloated components before shipping.
Instructions
Analyze component performance: DOM element count, tree depth, render time, script/stylesheet count. Use this to catch bloated components before they ship.
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": {
"code": "<code>"
},
"name": "perf_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Component code to audit | |
| framework | No | Framework | react |
| width | No | Viewport width (px) | |
| height | No | Viewport height (px) |