Analyze Motion
analyze_motionAnalyze webpage motion by sampling keyframes, extracting CSS animation metadata, and generating pixel diffs with a contact sheet for coding agents.
Instructions
Analyze rendered page motion for coding agents using sampled keyframes, CSS animation metadata, pixel diffs, and a contact sheet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The public http(s) URL to render and analyze. | |
| width | No | Viewport width in pixels. | |
| height | No | Viewport height in pixels. | |
| outputDir | No | Directory where motion analysis evidence should be saved. | |
| timeoutMs | No | Navigation and analysis timeout. | |
| waitUntil | No | Navigation wait condition. Defaults to load for motion analysis. | |
| durationMs | No | How long to sample motion after navigation. Defaults to 3000 ms. | |
| sampleCount | No | Number of screenshots to sample across the duration. Defaults to 5. | |
| scrollStepPx | No | Pixels to scroll per step when sampling scroll motion. | |
| includeImages | No | Embed contact sheet and diff image resources in the MCP response. Defaults to true. | |
| scrollDelayMs | No | Delay between scroll steps in milliseconds. | |
| scrollMaxSteps | No | Maximum number of scroll steps. | |
| changeThreshold | No | Per-pixel channel delta threshold for pixel-diff detection. Defaults to 40. | |
| diffSampleStride | No | Pixel sampling stride for diff analysis. Higher values are faster but less precise. Defaults to 2. | |
| includePixelDiff | No | Compute pixel-diff summaries across sampled frames. Defaults to true. | |
| includeFrameImages | No | Also embed each raw sampled frame as an image resource. Defaults to false. | |
| allowPrivateNetwork | No | Allow localhost/private network URLs for this call. Defaults to false. | |
| scrollDuringCapture | No | Scroll through the page while sampling to analyze scroll-driven motion and lazy loading. | |
| includeCssAnimations | No | Extract document.getAnimations() metadata from the page. Defaults to true. |