Home / Servers / Vercel API / create_sandboxes_by_name_fork_v2

Fork a named sandbox

An MCP tool from the Vercel API server, hosted on mcp.hjlabs.in.

Fork a named sandbox Forks a named sandbox, creating a new named sandbox from the source's configuration. Resources, timeout, ports, tags, network policy, mounts, Connect network, image, persistence, snapshot settings… [POST /v2/sandboxes/{name}/fork]

Name on the gateway: vercel_api__create_sandboxes_by_name_fork_v2 · may change things.

Parameters

NameTypeDescription
name requiredstringName of the source sandbox to fork.
projectIdstringThe ID of the project the source sandbox belongs to. Required unless…
teamIdstringThe Team identifier to perform the request on behalf of.
slugstringThe Team slug to perform the request on behalf of.
networkPolicyobjectNetwork access policy for the sandbox.\n Controls which external hosts the…
resourcesobjectResources to define the VM
portsarrayList of ports to expose from the sandbox. Each port will be accessible via a…
imagestringImage to use for the sandbox.
timeoutintegerMaximum duration in milliseconds that the sandbox can run before being…
envobjectDefault environment variables for the sandbox. These are inherited by all…
mountsobjectList of drives to mount to the sandbox at the provided path.
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.
networkIdstringThe Connect network id for the target Secure Compute private network.
body_namestringName for the forked sandbox. Must be unique per project and URL-safe…
persistentbooleanWhether the sandbox persists its state across restarts via automatic…
snapshotExpirationstringDefault snapshot expiration time in milliseconds. Set to 0 to disable…
keepLastSnapshotsobjectProtect the N most recent snapshots with different expiration/deletion behavior.
tagsobjectKey-value tags to associate with the sandbox. Maximum 5 tags.

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__create_sandboxes_by_name_fork_v2",
  "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 fork a named sandbox tool with name set to ….

More from Vercel API