Skip to main content
GET
Browse runtime sandbox

Authorizations

Authorization
string
header
required

API token from cargo-ai login. Send as Authorization: Bearer <token>.

Query Parameters

path
string

Optional path to browse, relative to the workspace working directory. Omit to list the root.

depth
integer

Recursion depth. Omit (or pass 1) to list a single directory level via the runtime sandbox. Pass -1 together with no path to fetch the entire repository tree from the configured default branch on GitHub in one call.

Required range: -9007199254740991 <= x <= 9007199254740991

Response

Browse runtime sandbox

path
string
required
entries
Entries · object[]
required

Files and folders at the requested path.

truncated
boolean

Set to true only on the recursive GitHub view when the upstream tree response was truncated past GitHub's 100k-entries / 7 MB cap.