Comprehensive frontend analysis including DOM, CSS, layout, and structure
Runs comprehensive frontend diagnostics on the current page, analyzing DOM complexity, CSS issues, layout overflows, and stacking contexts. Use this when debugging performance problems, layout bugs, or assessing code quality before refactoring.
/plugin marketplace add standardbeagle/agnt/plugin install agnt@standardbeagle-toolsRun a comprehensive frontend analysis on the current page using agnt's diagnostic tools.
Analyze DOM complexity:
proxy {action: "exec", id: "dev", code: "__devtool.auditDOMComplexity()"}
Audit CSS for issues:
proxy {action: "exec", id: "dev", code: "__devtool.auditCSS()"}
Find layout overflows:
proxy {action: "exec", id: "dev", code: "__devtool.findOverflows()"}
Find stacking contexts (z-index layers):
proxy {action: "exec", id: "dev", code: "__devtool.findStackingContexts()"}
Capture full page state:
proxy {action: "exec", id: "dev", code: "__devtool.captureDOM()"}
Capture network resources:
proxy {action: "exec", id: "dev", code: "__devtool.captureNetwork()"}
Take a screenshot:
proxy {action: "exec", id: "dev", code: "__devtool.screenshot('frontend-analysis')"}
The auditDOMComplexity() function returns:
| Metric | Healthy Range | Concern |
|---|---|---|
totalElements | < 1500 | > 3000 impacts performance |
maxDepth | < 20 | > 32 causes issues |
duplicateIds | 0 | Any duplicate breaks JS/CSS |
scripts | < 20 | > 50 slows loading |
stylesheets | < 10 | > 20 blocks rendering |
iframes | < 5 | Each adds overhead |
The auditCSS() function checks:
| Issue | Description | Impact |
|---|---|---|
excessive-inline-styles | Many elements with style="" | Maintainability, caching |
excessive-important | Many !important rules | Specificity wars |
Returns:
inlineStyleCount: Elements with inline stylesimportantCount: Rules using !importantstylesheetCount: Total stylesheetsElements with content exceeding their bounds:
hidden (content clipped) or scrollableElements creating new z-index layers:
// Inspect a specific element comprehensively
proxy {action: "exec", id: "dev", code: "__devtool.inspect('#my-element')"}
// Get computed styles for an element
proxy {action: "exec", id: "dev", code: "__devtool.getComputed('#my-element')"}
// Get box model (margin, border, padding)
proxy {action: "exec", id: "dev", code: "__devtool.getBox('#my-element')"}
// Get flexbox/grid layout info
proxy {action: "exec", id: "dev", code: "__devtool.getLayout('#my-element')"}
// Get stacking context info
proxy {action: "exec", id: "dev", code: "__devtool.getStacking('#my-element')"}
// Walk DOM tree from element
proxy {action: "exec", id: "dev", code: "__devtool.walkChildren('#container', 3)"}