Analyze page performance including load times and network resources
Analyze browser page performance including load times, network resources, and DOM complexity. Use when diagnosing slow pages or optimizing web performance.
/plugin marketplace add standardbeagle/agnt/plugin install agnt@standardbeagle-toolsAnalyze the performance of the current browser page using agnt's diagnostic tools.
Capture network performance data:
proxy {action: "exec", id: "dev", code: "__devtool.captureNetwork()"}
Check for layout issues that affect performance:
proxy {action: "exec", id: "dev", code: "__devtool.findOverflows()"}
Analyze DOM complexity (affects rendering performance):
proxy {action: "exec", id: "dev", code: "__devtool.auditDOMComplexity()"}
Check for stacking contexts (can cause repaint issues):
proxy {action: "exec", id: "dev", code: "__devtool.findStackingContexts()"}
Query the proxy logs for performance metrics:
proxylog {proxy_id: "dev", types: ["performance"], limit: 10}
captureNetwork)resources: Array of all loaded resourcescount: Total number of resourcesname: URL of the resourcetype: initiator type (script, img, css, etc.)duration: Load time in mssize: Transfer size in bytesstartTime: When loading startedauditDOMComplexity)totalElements: Total DOM nodes (aim for < 1500)maxDepth: Maximum nesting depth (aim for < 32)duplicateIds: IDs used more than once (should be 0)scripts: Number of scripts (minimize)stylesheets: Number of stylesheets (minimize)findOverflows)The proxy automatically captures Navigation Timing API metrics:
domContentLoaded: Time to DOMContentLoadedloadEventEnd: Time to full page loadfirstPaint: Time to first paintlargestContentfulPaint: Time to LCP (Core Web Vital)