Skip to main content

Overview

Containers endpoints

Available Operations

ListContainerFiles

Lists the files in a container, in lexicographic path order. The container id is the canonical id returned in bash/shell tool results; a restarted session is a separate container with its own id. Paginate with limit and after (pass the previous page’s last_id); has_more: true always means the next page is fetchable that way.

Example Usage

Parameters

Response

*components.ContainerFileListResponse, error

Errors

GetContainerFile

Returns the metadata of a single file in a container.

Example Usage

Parameters

Response

*components.ContainerFile, error

Errors

DownloadContainerFileContent

Streams the raw bytes of a file in a container.

Example Usage

Parameters

Response

io.ReadCloser, error

Errors

PromoteContainerFile

Copies a file from the container’s sandbox prefix into the workspace’s durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace’s storage quota exactly like an upload.

Example Usage

Parameters

Response

*components.FileResponse, error

Errors