Preview domain
preview_domainRender a domain before adding it as an asset on a monitor with a capture reference. A preview exists only for a planned add_asset: it needs the monitor, passes the same checks add_asset would (valid domain, plan slot free, not already watched) and its confirm records that the user asked for the add. Returns the normalized domain, the screenshot as image content so it can be shown to the user, plus a capture_token bound to that domain with its expiry in expires_at (a few minutes). The image is for the user to approve; the token then goes to add_asset as reference.capture_token, and a new preview_domain call retries the render. captured is true only when the render produced a screenshot. A render that got only the site icon (captured false) still returns a capture_token, which stores that icon alone; a failed or blocked render with no icon returns the outcome with no token. When captured is false, upload or skip are the alternatives. Requires write access, since it only makes sense when setting up monitoring.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | A valid domain, e.g. "acme.com". | |
| confirm | Yes | Required. true records that the user asked to add this domain to this monitor; a preview is the first step of add_asset, not a standalone lookup. | |
| monitor_id | Yes | Monitor id from list_monitors or create_monitor. The render is for a domain asset planned on this monitor. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | The normalized domain that was rendered, the value for add_asset. | |
| result | Yes | ||
| captured | Yes | ||
| expires_at | Yes | ||
| capture_token | Yes |