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§
- Computer
Preview Read Params - Request one retained screenshot body.
- Computer
Preview Read Result - 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.