frames
Record page performance for a set duration: frame rate, dropped frames, long animation frames, layout shifts, slowest interaction. Optionally run an action (click, hover, scroll, key).
Instructions
Record the page for duration_ms and report how smooth it ran: main-thread frame rate and dropped frames, Long Animation Frames (duration, blocking time, render and style/layout start, the scripts responsible), layout shifts with the elements that moved (CLS for the window only), and the slowest interaction (INP for the window, split into input delay, processing, presentation; needs trusted input, synthetic events have no interaction id). Optionally runs an action (click, hover, scroll, key) right after recording starts. Animations that started are counted too. Compositor-only animations can stay smooth while the main thread drops frames. Refuses on a hidden page: rAF and observers stop there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max long frames listed; counts include all | |
| action | No | Action run right after recording starts | |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| frame_id | No | Target iframe id from get_frames; omitted = main frame | |
| duration_ms | No | Recording window in ms (max 30000) | |
| threshold_ms | No | Long frames shorter than this are not listed |