Create sandbox

veryfront__create_sandbox

Requires project.sandboxes.manage.

Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

Call type: Can change resources.

Arguments

FieldTypeRequiredDescription and constraints
access_scopestringYesPrivate sandboxes require creator credentials or a creator-owned MCP OAuth grant. Values: "project", "private".
project_referencestringNoProject UUID or slug to bill. When set, the project owner is billed.
environment_idstringNoEnvironment whose variables are copied once into the sandbox; it also identifies the billing project. Format: uuid.
ttl_modestringNoSandbox lifetime policy. default uses the platform’s idle and maximum lifetime limits. Values: "default", "duration", "always_on".
ttl_hoursintegerNoRequired when ttl_mode is duration. Number of hours before cleanup, up to 24. Maximum: 24.

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_sandbox",
    "arguments": {
      "access_scope": "project"
    }
  }
}

Result

The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.

FieldTypeRequiredDescription and constraints
idstringYesUnique identifier for the returned record. Format: uuid.
short_idstringYes
endpointstringYesSandbox endpoint URL.
statusstringYesSandbox lifecycle status. Values: "pending", "provisioning", "running", "error", "deleting".
project_idstring or nullYesProject identifier associated with this result.
run_idstring or nullNoAgent run that created this sandbox.
stopped_atstring or nullNoCompute cleanup completed; only session history remains.
access_scopestringYesValues: "project", "private".
workspace_storagestringYesPersistent workspaces survive runtime pod replacement. Deleting the sandbox also deletes its workspace. Values: "ephemeral", "persistent".
ttl_modestringYesValues: "default", "duration", "always_on".
ttl_hoursinteger or nullYes
expires_atstring or nullYes
created_atstringYesCreation timestamp in ISO 8601 format.
last_activity_atstring or nullYes
variable_snapshotobjectNoSnapshot provenance on sandbox details. Variables are copied once, without live synchronization. No variable keys or values are included.

Full schemas

json
{
  "type": "object",
  "properties": {
    "access_scope": {
      "type": "string",
      "enum": [
        "project",
        "private"
      ],
      "description": "Private sandboxes require creator credentials or a creator-owned MCP OAuth grant."
    },
    "project_reference": {
      "type": "string",
      "description": "Project UUID or slug to bill. When set, the project owner is billed."
    },
    "environment_id": {
      "type": "string",
      "format": "uuid",
      "description": "Environment whose variables are copied once into the sandbox; it also identifies the billing project."
    },
    "ttl_mode": {
      "type": "string",
      "enum": [
        "default",
        "duration",
        "always_on"
      ],
      "description": "Sandbox lifetime policy. `default` uses the platform’s idle and maximum lifetime limits."
    },
    "ttl_hours": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 24,
      "description": "Required when ttl_mode is duration. Number of hours before cleanup, up to 24."
    }
  },
  "required": [
    "access_scope"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Arguments for the create_sandbox tool."
}
json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier for the returned record."
    },
    "short_id": {
      "type": "string"
    },
    "endpoint": {
      "type": "string",
      "description": "Sandbox endpoint URL."
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "provisioning",
        "running",
        "error",
        "deleting"
      ],
      "description": "Sandbox lifecycle status."
    },
    "project_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "description": "Project identifier associated with this result."
        },
        {
          "type": "null",
          "description": "Project identifier associated with this result."
        }
      ],
      "description": "Project identifier associated with this result."
    },
    "run_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "description": "Run identifier associated with this result."
        },
        {
          "type": "null",
          "description": "Run identifier associated with this result."
        }
      ],
      "description": "Agent run that created this sandbox."
    },
    "stopped_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "Compute cleanup completed; only session history remains."
    },
    "access_scope": {
      "type": "string",
      "enum": [
        "project",
        "private"
      ]
    },
    "workspace_storage": {
      "type": "string",
      "enum": [
        "ephemeral",
        "persistent"
      ],
      "description": "Persistent workspaces survive runtime pod replacement. Deleting the sandbox also deletes its workspace."
    },
    "ttl_mode": {
      "type": "string",
      "enum": [
        "default",
        "duration",
        "always_on"
      ]
    },
    "ttl_hours": {
      "anyOf": [
        {
          "type": "integer",
          "exclusiveMinimum": 0
        },
        {
          "type": "null",
          "description": "The ttl hours returned by the tool."
        }
      ]
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "description": "Creation timestamp in ISO 8601 format."
    },
    "last_activity_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "variable_snapshot": {
      "type": "object",
      "properties": {
        "source_environment_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null",
              "description": "The source environment id returned by the tool."
            }
          ]
        },
        "variable_count": {
          "type": "integer",
          "minimum": 0
        },
        "copied_at": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "source_environment_id",
        "variable_count",
        "copied_at"
      ],
      "additionalProperties": false,
      "description": "Snapshot provenance on sandbox details. Variables are copied once, without live synchronization. No variable keys or values are included."
    }
  },
  "required": [
    "id",
    "short_id",
    "endpoint",
    "status",
    "project_id",
    "access_scope",
    "workspace_storage",
    "ttl_mode",
    "ttl_hours",
    "expires_at",
    "created_at",
    "last_activity_at"
  ],
  "additionalProperties": false,
  "description": "Structured result returned by the create_sandbox tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}