e2b_set_sandbox_timeout
Set a sandbox's timeout to expire after a specified number of seconds. Overwrites any previous TTL to control sandbox lifecycle.
Instructions
Set the sandbox timeout: it will expire N seconds from now. Overwrites any previous TTL.
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>",
"timeout": "<timeout>"
},
"name": "e2b_set_sandbox_timeout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | Yes | Seconds from now until expiry | |
| sandboxId | Yes |