Unique identifier for this rendered piece within the variant
Discriminator indicating both preview_url and preview_html are provided
Untrusted URL to an HTML page that renders this piece. Consumers MUST load it only in a cross-origin iframe with an empty sandbox token set and a caller-enforced restrictive CSP. Provider embedding metadata is advisory and MUST NOT loosen that policy.
Untrusted HTML. Consumers MUST NOT inject it into the host DOM. Render only as iframe srcdoc with an empty sandbox token set and a caller-enforced restrictive CSP; provider embedding metadata is advisory and MUST NOT loosen that policy.
Semantic role of this rendered piece. Use 'primary' for main content, 'companion' for associated banners, descriptive strings for device variants or custom roles.
Optionaldimensions?: { width: number; height: number }Dimensions for this rendered piece
Optionalembedding?: {Optional security and embedding metadata for safe iframe integration
Optionalrecommended_sandbox?: ""Empty iframe sandbox token set. Provider metadata MUST NOT grant scripts, same-origin, navigation, popups, forms, downloads, or other capabilities.
Optionalrequires_https?: booleanWhether this output requires HTTPS for secure embedding
Optionalsupports_fullscreen?: booleanWhether this output supports fullscreen mode
Optionalcsp_policy?: stringContent Security Policy requirements for embedding
Optionalrenderer?: PreviewRendererMetadata
Build a both-variant
PreviewRenderwithoutput_format: 'both'injected. Requires bothpreview_urlandpreview_html.