Update sandbox
update_sandboxModify an existing sandbox's display name, labels, subdomain, or auto-stop TTL. Use it to rename URLs without downtime, replace tags, or extend a running sandbox's life.
Instructions
Update sandbox
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>"
},
"name": "update_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New display name. Empty strings are rejected; longer names are truncated to 120 chars by the backend. | |
| labels | No | Replaces all labels of the sandbox. `{}` or `null` removes them. Same rules as `CreateSandboxRequest.labels`. | |
| sandboxId | Yes | Public Sandbox id returned by create/list/get sandbox calls. | |
| subdomain | No | Rename the sandbox's stable subdomain (the `<subdomain>.on.boat.dev` label). Lowercase letters, digits and hyphens; no leading/trailing/double hyphens; cannot end in `-desktop` or `-<number>` (reserved for the desktop and hosted-port URLs). Must be globally unique. The base URL, desktop URL and every live `host <port>` URL are re-pointed to the new name with no downtime and their access tokens preserved; the old URLs stop resolving. On a transient routing error the rename is saved but returns 502 `gateway_error` - retry with the same value to finish activating routes. | |
| ttlSeconds | No | New auto-stop TTL. The deadline becomes now + `ttlSeconds`, so calling this again extends a running sandbox's life. `null` disables auto-stop. |