Get a download URL for a sandbox file
create_download_urlGenerate a short-lived, path-bound download URL for a sandbox file, enabling raw-byte downloads without an Authorization header or size limit until the URL expires.
Instructions
Get a download URL for a sandbox file. Returns a short-lived URL that the sandbox serves itself. GET it to download the file as raw bytes, with no size limit and no Authorization header. The URL is bound to this path and expires after ttlSeconds (default 15 minutes, at most 1 hour). Needs file.read. Treat the URL as a secret until it expires.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sandboxId": "<sandboxId>",
"path": "<path>"
},
"name": "create_download_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path, or path relative to the sandbox work directory (/home/user). It must resolve under /home/user or /tmp. | |
| sandboxId | Yes | Public Sandbox id returned by create/list/get sandbox calls. | |
| ttlSeconds | No | How long the URL stays valid. |