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

NameTypeDescription
name requiredstringThe sandbox to update.
projectIdstringThe project ID that owns the named sandbox. When provided, takes precedence…
resumebooleanWhether to automatically resume a stopped named sandbox by creating a new…
teamIdstringThe Team identifier to perform the request on behalf of.
slugstringThe Team slug to perform the request on behalf of.
resourcesobjectResources to define the VM
runtimenode22 | node24 | node26 | python3.13The runtime environment for the sandbox. Determines the pre-installed language…
timeoutintegerMaximum duration in milliseconds that the sandbox can run before being…
persistentbooleanWhether the sandbox persists its state across restarts via automatic snapshots.
snapshotExpirationstringDefault snapshot expiration time in milliseconds. Set to 0 to disable…
keepLastSnapshotsobjectProtect the N most recent snapshots with different expiration/deletion…
networkPolicyobjectNetwork access policy for the sandbox.\n Controls which external hosts the…
regioniad1 | sfo1 | cle1 | cdg1 | fra1 | arn1 | sin1 | pdx1 | lhr1 | icn1 | bom1 | cpt1 | dub1 | gru1 | hkg1 | syd1 | yul1 | hnd1 | kix1The Vercel region in which to create the sandbox.
failoverRegionsarrayThe regions the sandbox falls back to when it cannot be created in region.
mountsobjectDrives to mount to the sandbox at the provided path. Replaces the current…
networkIdstringThe Connect network id for the target Secure Compute private network. Set to…
envobjectDefault environment variables for the sandbox. Set to empty object to clear.
portsarrayList of ports to expose from the sandbox. Each port will be accessible via a…
currentSnapshotIdstringThe snapshot ID to set as the current snapshot. Must be active and belong to…
tagsobjectKey-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:

call_tool arguments
{
  "name": "vercel_api__update_sandbox",
  "arguments": {
    "name": "…"
  }
}

Or connect the Vercel API server directly, which lists 472 tools including this one:

Run in your terminal
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 ….

More from Vercel API