Skip to content

ArtifactReadRequest

ArtifactReadRequest = object

A ranged read of an engine-owned media artifact through IndeRunApi.readArtifact (ADR 017). Reads are repeatable until the artifact is disposed; each returns at most the engine’s configured maximum read size, which bounds what one call — and one bridge message — carries.

[property: string]: unknown

artifactId: string

MediaArtifact.id of the artifact to read.


optional maxBytes?: number

Most bytes to return. Absent, or larger than the engine’s maximum read size, means that maximum.


optional offset?: number

Byte offset to read from. Absent means 0. An offset equal to the artifact’s size returns an empty, final chunk; a larger one is rejected.