---
title: "Browse runtime sandbox"
method: GET
path: "/context/runtime"
tags: ["Context - Runtime"]
---

# Browse runtime sandbox

`GET /context/runtime`

List entries at a path in the workspace runtime sandbox. Omit `path` to list the root, or pass `depth=-1` (with no `path`) to fetch the entire repository tree from the configured default branch on GitHub in one call.

## 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.

## Response `200`

Successful response

- object
  - `path` string, required
  - `entries` object[], required — Files and folders at the requested path.
    - `name` string, required
    - `path` string, required — Repository-relative path. For single-level browses this is `${parent}/${name}`; for the recursive GitHub view it is the full path returned by the Trees API.
    - `kind` 'file' | 'folder', required
  - `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.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/getcargo/apis/cargo-api.md) · [All operations](https://skmtc.net/getcargo/apis/cargo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getcargo/cargo-api/revisions/1d5a19e01d83/schema)
