render_preview
Capture a screenshot of a public URL or created page preview to visually verify landing page fidelity during the build-check cycle.
Instructions
Renders a PUBLIC URL to a PNG and returns it as an image so the model can SEE the result and compare it visually to the reference — the fidelity-check step of the clone loop (build → see → patch_page → re-check). Pass page_id to shoot a created page's preview (/preview/) or url for any public page (e.g. the reference you're cloning). full_page defaults to true (whole scrollable page). AGENT-FIRST: if YOU already have a screenshot/browser capability (a shell + headless browser, or a screenshot tool), screenshot the preview URL YOURSELF instead — it's fresh and unlimited; use this tool only when you cannot. ENGINE: zero-config via Microlink's free tier (rate-limited ~50/day PER IP, so heavy looping can hit HTTP 429 — then this returns ok:false and you should SKIP the visual check that round, not fail); a host can set RENDER_SCREENSHOT_BASE (or the x-render-screenshot-base header) to a keyed proxy, or MICROLINK_API_KEY / x-microlink-key for a higher quota. NOTE: a no-domain preview only renders for ~10 minutes after the last publish — call this promptly after create_page/publish_page, and re-publish before re-checking a stale page. TALL PAGES: pass tiles:true to get the page as a STACK of top→bottom band images (each readable at full detail) instead of one full-page image squished small — needs a self-hosted Playwright host (RENDER_SCREENSHOT_BASE); falls back to a single image otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Any public http(s) URL to screenshot (e.g. the reference page being cloned). Wins over page_id. | |
| tiles | No | Tall pages: return the page as MULTIPLE top→bottom band images (each readable in detail) instead of one squished full-page image. Requires a Playwright host (RENDER_SCREENSHOT_BASE); without one it falls back to a single image. | |
| width | No | Viewport width in px (default 1280; use ~960/1200 to match the page canvas, ~420 for mobile). | |
| page_id | No | A created page's id — screenshots its /preview/<id> URL (built from the preview base). Provide page_id OR url. | |
| full_page | No | Capture the whole scrollable page (default true) vs just the viewport. |