Skip to main content

Overview

Containers endpoints

Available Operations

list_container_files

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. last_id is the resume cursor: it is the last listed file’s id, except when a page ends at the per-request scan bound on hidden bookkeeping objects, where it names the scan position instead and may not appear in data (which can then be empty).

Example Usage

Parameters

Response

components.ContainerFileListResponse

Errors

get_container_file

Returns the metadata of a single file in a container.

Example Usage

Parameters

Response

components.ContainerFile

Errors

download_container_file_content

Streams the raw bytes of a file in a container.

Example Usage

Parameters

Response

httpx.Response

Errors

promote_container_file

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. Unlike a direct upload, promoted files are downloadable.

Example Usage

Parameters

Response

components.FileResponse

Errors