Home / Servers / Vercel API / update_sandbox
Update a sandbox
An MCP tool from the Vercel API server, hosted on mcp.hjlabs.in.
Update a sandbox Updates the configuration of a sandbox. Only the provided fields will be modified; omitted fields remain unchanged. [PATCH /v2/sandboxes/{name}]
Name on the gateway: vercel_api__update_sandbox · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
name required | string | The sandbox to update. |
projectId | string | The project ID that owns the named sandbox. When provided, takes precedence… |
resume | boolean | Whether to automatically resume a stopped named sandbox by creating a new… |
teamId | string | The Team identifier to perform the request on behalf of. |
slug | string | The Team slug to perform the request on behalf of. |
resources | object | Resources to define the VM |
runtime | node22 | node24 | node26 | python3.13 | The runtime environment for the sandbox. Determines the pre-installed language… |
timeout | integer | Maximum duration in milliseconds that the sandbox can run before being… |
persistent | boolean | Whether the sandbox persists its state across restarts via automatic snapshots. |
snapshotExpiration | string | Default snapshot expiration time in milliseconds. Set to 0 to disable… |
keepLastSnapshots | object | Protect the N most recent snapshots with different expiration/deletion… |
networkPolicy | object | Network access policy for the sandbox.\n Controls which external hosts the… |
region | iad1 | sfo1 | cle1 | cdg1 | fra1 | arn1 | sin1 | pdx1 | lhr1 | icn1 | bom1 | cpt1 | dub1 | gru1 | hkg1 | syd1 | yul1 | hnd1 | kix1 | The Vercel region in which to create the sandbox. |
failoverRegions | array | The regions the sandbox falls back to when it cannot be created in region. |
mounts | object | Drives to mount to the sandbox at the provided path. Replaces the current… |
networkId | string | The Connect network id for the target Secure Compute private network. Set to… |
env | object | Default environment variables for the sandbox. Set to empty object to clear. |
ports | array | List of ports to expose from the sandbox. Each port will be accessible via a… |
currentSnapshotId | string | The snapshot ID to set as the current snapshot. Must be active and belong to… |
tags | object | Key-value tags to associate with the sandbox. Replaces existing tags. Set to… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "vercel_api__update_sandbox",
"arguments": {
"name": "…"
}
}Or connect the Vercel API server directly, which lists 472 tools including this one:
claude mcp add --transport http hj-vercel-api https://mcp.hjlabs.in/mcp/vercel-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the update a sandbox tool with name set to ….