Download a file from a sandbox
download_fileRead a SMALL file from the sandbox (absolute path, max 5 MB) into this conversation: content as UTF-8 text by default, as_text: false → content_base64. For build artifacts, archives, binaries or anything big use get_download_url instead — you get a short-lived link and download it with curl, without pulling base64 into your context. Requires: token + live sandbox_id. Max 5 MB — bigger: get_download_url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Required. Absolute path inside the sandbox to read (max 5 MB), e.g. "/root/app/main.py". Must start with "/". | |
| as_text | No | Optional. True (default) = return `content` as UTF-8 text; false = return `content_base64` (for binary files). | |
| sandbox_id | Yes | Required. Sandbox id as returned by create_sandbox / list_sandboxes, e.g. "sb_3f2a…". |