Set timeout
set_timeoutSet a new lifetime for the sandbox in seconds, counted from now; returns the new expiry time. Use it before long interactive work so the sandbox does not fall asleep (or end) in the middle. It neither puts the sandbox to sleep nor deletes it.
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": {
"timeout_s": "<timeout_s>"
},
"name": "set_timeout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_s | Yes | New lifetime in seconds | |
| sandbox_id | No | Sandbox ID (sb_…). If omitted, the current sandbox of this session is used. A sandbox_id you pass becomes the current sandbox for later calls without sandbox_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expires_at | Yes | When the sandbox expires or falls asleep (RFC 3339, UTC). | |
| sandbox_id | Yes | Sandbox ID. |