Agents

List agent environment files

Lists live files on a connected execution environment with optional directory filtering and opaque cursor pagination. See environment files.

get/agents/environments/{environment_id}/files

Path parameters

environment_idstring required

The ID of the environment.

Query parameters

pathstring nullable

Restrict the listing to this absolute workspace directory.

limitinteger nullable

The maximum number of files to return, between 1 and 100.

order'asc' | 'desc'

The order in which paginated resources are returned.

Sort by case-sensitive path components. Defaults to descending.

pagestring

The opaque token from the previous page. Keep the same path, order, and limit.

Response

A page of live environment files.

object'page' required

The object type for a page of files in an execution environment.

nextstring nullable required

The opaque cursor to use when requesting the next page, if any.

has_moreboolean required

Whether more files follow this page.

Changes