Clone a website section
clone_sectionUse this when you need a portable implementation package for one known section. Avoid it when you need an entire page; use create_replication_kit.
Instructions
Use this when you need a portable implementation package for one known section. Avoid it when you need an entire page; use create_replication_kit. Return cleaned HTML, scoped CSS, dependencies, assets, and an optional screenshot for one section. Cost: standard. Session: uses one browser page for one URL. May write files when an output path is provided. Possible follow-ups if evidence is still missing: capture_motion, compare_replica.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute http:// or https:// URL to clone from. | |
| selector | Yes | CSS selector for the section to clone. | |
| maxAssets | No | Maximum assets to download when outputDir is set. | |
| outputDir | No | Absolute directory to download the section's assets into (URLs are rewritten to relative paths). | |
| 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. | |
| viewportWidth | No | Browser viewport width in CSS pixels. | |
| viewportHeight | No | Browser viewport height in CSS pixels. | |
| maxBytesPerAsset | No | Skip assets larger than this. | |
| includeScreenshot | No | Include a screenshot of the cloned section. | |
| allowPrivateNetwork | No | Allow localhost and private-network URLs. Enable only for trusted sites. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Portable section package; any screenshot is returned as MCP image content. | |
| guidance | Yes |