runtime

Get Volume File Content

Read a text preview for a single file from the runtime volume.

get/api/v1/runtime/volume/file

Query parameters

pathstring required

Absolute or volume-relative file path to preview from the runtime volume.

Absolute or volume-relative file path to preview from the runtime volume.

max_bytesinteger

Maximum number of bytes of text content to return in the preview response.

Maximum number of bytes of text content to return in the preview response.

provider'modal' | 'daytona' nullable

Optional runtime volume backend override. Defaults to the active sandbox provider.

Optional runtime volume backend override. Defaults to the active sandbox provider.

Response

Successful Response

provider'modal' | 'daytona' required

Runtime volume backend used to satisfy the request.

pathstring required

Normalized file path used for the preview request.

mimestring required

Detected MIME type for the returned content.

sizeinteger required

File size in bytes reported by the provider.

contentstring required

UTF-8 text preview returned for the requested file.

truncatedboolean

Whether the returned file content was truncated to respect max_bytes.

Changes