mimic_render_url
Render JavaScript-heavy web pages in a headless browser to extract the full DOM. Use when a URL returns a loading shell instead of meaningful HTML. Returns a path to the rendered HTML file for further processing.
Instructions
Render a client-rendered web page in a headless browser and extract the full DOM. Use this when a URL returns only a JS shell, loading spinner, or hydration scaffold — not meaningful HTML. The renderer waits for the page to fully hydrate using generic readiness signals (text density, node count, DOM stability) before extracting. Returns the path to the rendered HTML file which can then be used as build input. On failure, returns a classified error (auth wall, endless loading, empty shell, etc).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to render. | |
| output | No | Optional output file path. Defaults to internal/builds/rendered-{timestamp}.html. | |
| timeout | No | Max render wait in ms. Default: 30000. | |
| cookies | No | Auth cookies for the target domain. Each: { name, value, domain, path }. |