CAIN-42 CAIN Studio

API reference · schema

KernelSandboxRunRequest

5 fields · used by 0 operations

Last reviewed 2026-10-03

Fields

FieldTypeMeaning
code requiredstringPython script to execute in kernel-enforced sandbox
scope_commstring or nulldefault "cain_box"
allowed_write_prefixesarray of string or null
allowed_exec_prefixesarray of string or null
timeoutnumber or nulldefault 15.0

Smallest valid example

{
  "code": "code",
  "scope_comm": "cain_box",
  "timeout": 15.0
}

JSON Schema

Show the raw definition
{
  "properties": {
    "code": {
      "type": "string",
      "title": "Code",
      "description": "Python script to execute in kernel-enforced sandbox"
    },
    "scope_comm": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Scope Comm",
      "default": "cain_box"
    },
    "allowed_write_prefixes": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Allowed Write Prefixes"
    },
    "allowed_exec_prefixes": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Allowed Exec Prefixes"
    },
    "timeout": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Timeout",
      "default": 15.0
    }
  },
  "type": "object",
  "required": [
    "code"
  ],
  "title": "KernelSandboxRunRequest"
}

Try CAIN-42 on your own agents

Create a free account and every new account starts with a 7-day trial of the full platform. Or try the sandbox first, with no account at all.

Create a free account →  ·  Try the sandbox  ·  See the whole ecosystem