Skip to main content

Module preview

Module preview 

Source
Expand description

Ephemeral computer-use screenshot preview DTOs.

Transcript rows carry a computer-preview:// reference (row id plus byte metadata, no pixels); the client resolves it through computer/preview/read while the service still retains the bytes. Retention is memory-only and bounded, so reads answer either the PNG body or an explicit expiry — never an error the client should retry.

Structs§

ComputerPreviewReadParams
Request one retained screenshot body.
ComputerPreviewReadResult
One retained screenshot body, or its expiry.

Constants§

COMPUTER_PREVIEW_URI_SCHEME
URI scheme for computer-preview references. The remainder is the outer tool row id verbatim; no filesystem or network resource is named.
MAX_COMPUTER_PREVIEW_URI_BYTES
Longest accepted reference. Row ids are short harness handles; anything longer is rejected before the lookup.

Functions§

parse_preview_uri
Parse and validate a preview reference, returning the row id. Rejects foreign schemes, empty ids, whitespace, and overlong input before any lookup; a well-formed but unknown id is a lookup miss (expired), not a validation failure.
preview_uri
Reference URI for a row’s screenshot.