Capture motion over time
capture_motionCapture a page's real motion by sampling screenshots over time after load, scroll, hover, or click. Get Web Animations API data and numeric transform/opacity curves to catch JS-driven animations that static analysis misses.
Instructions
Capture how a page actually moves: a frame-strip of screenshots sampled over time after load, scroll, hover, or click, the Web Animations API inventory (element.animate/CSS animation/transition keyframes, timing, easing, play state), and per-frame numeric transform/opacity curves for animated elements. Catches JS-driven motion (GSAP, Framer Motion) that extract_animations cannot see statically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http:// or https:// URL to capture motion from. | |
| samples | No | Number of frames to capture. | |
| trigger | No | What starts the motion: page load (reloads and samples immediately), scrolling, or hover/click on a selector. | load |
| selector | No | Required for hover/click; optional scroll target for the scroll trigger. | |
| outputDir | No | Absolute directory to save all frames into as motion-frame-N.jpg. | |
| timeoutMs | No | Navigation timeout in milliseconds. | |
| userAgent | No | Optional browser user-agent override. | |
| waitUntil | No | Page lifecycle event to await before extraction. | domcontentloaded |
| intervalMs | No | Target milliseconds between frames. | |
| maxAnimations | No | Cap on Web Animations API entries returned. | |
| viewportWidth | No | Browser viewport width in CSS pixels. | |
| trackSelectors | No | Extra elements whose computed transform/opacity/filter/clip-path are sampled at every frame. | |
| viewportHeight | No | Browser viewport height in CSS pixels. | |
| maxInlineFrames | No | How many frames to return inline as images. | |
| maxTrackedElements | No | Cap on elements sampled for numeric motion curves. | |
| allowPrivateNetwork | No | Allow localhost and private-network URLs. Enable only for trusted sites. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |