Upload link into a sandbox
get_upload_urlGet a short-lived HTTPS link to PUT ONE file into the sandbox at path (up to 2 GB): curl -fT <file> <url>. One request carries at most 95 MB — for bigger files PUT parts in order with ?offset=<bytes already uploaded> (each response returns next_offset; offset 0 overwrites). No base64 through this conversation. Requires: token + live sandbox_id. ≤95 MB per PUT; use ?offset for more.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | Optional. Link lifetime in seconds, 60–3600 (default 900 = 15 min). | |
| path | Yes | Required. Absolute path inside the sandbox to write the uploaded file to (overwritten at offset 0), e.g. "/root/app/main.py". Must start with "/". | |
| max_bytes | No | Optional. Maximum size of the uploaded file in bytes, integer 1–2147483648 (2 GB). Default: the server limit (2 GB). | |
| sandbox_id | Yes | Required. Sandbox id as returned by create_sandbox / list_sandboxes, e.g. "sb_3f2a…". |