Set sandbox lifetime
sandbox_set_timeoutAdjust a sandbox's remaining lifetime to keep it running for work you still need or end it sooner; it stops and loses files except attached volumes when time expires.
Instructions
Change how long a sandbox lives from now: it stops and loses its files (except an attached volume) when the time runs out. Use it to keep a sandbox the user still needs, or to end one sooner. 60,000 ms to 86,400,000 ms (a day).
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>",
"lifetimeMs": "<lifetimeMs>"
},
"name": "sandbox_set_timeout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sandboxId | Yes | Exact sandbox ID from sandbox_create or sandbox_list | |
| lifetimeMs | Yes |