Extract website assets
extract_assetsDownload a website's original images, videos, fonts, SVGs, and icons into a local folder, along with a manifest linking each asset to its page location, so a replica can reuse exact media.
Instructions
Download the real images, background images, inline SVG icons/logos, videos, favicons, and web fonts a website uses into a local folder, with a manifest.json mapping each file to where it appears. Lets a replica reuse the exact original assets instead of re-drawing them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http:// or https:// URL to extract assets from. | |
| types | No | Asset types to include. Empty means all. | |
| maxAssets | No | Maximum unique assets to download. | |
| outputDir | Yes | Absolute directory to write an 'assets/' folder and manifest.json into. | |
| timeoutMs | No | Navigation timeout in milliseconds. | |
| userAgent | No | Optional browser user-agent override. | |
| waitUntil | No | Page lifecycle event to await before extraction. | domcontentloaded |
| autoScroll | No | Scroll through the page before extraction to trigger lazy-rendered content. | |
| maxScrolls | No | Maximum viewport-sized scroll steps when autoScroll is enabled. | |
| maxSvgBytes | No | Skip inline SVGs larger than this. | |
| viewportWidth | No | Browser viewport width in CSS pixels. | |
| viewportHeight | No | Browser viewport height in CSS pixels. | |
| maxBytesPerAsset | No | Skip assets larger than this. | |
| allowPrivateNetwork | No | Allow localhost and private-network URLs. Enable only for trusted sites. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |