CAIN-42 CAIN Studio

API reference · schema

OpenShellExecuteRequest

5 fields · used by 0 operations

Last reviewed 2026-10-03

Fields

FieldTypeMeaning
agent_id requiredstring
command_argv requiredarray of string
timeout_secinteger or nulldefault 10
cwdstring or nulldefault "/tmp"
additional_envmap of string to string or null

Smallest valid example

{
  "agent_id": "agent-id",
  "command_argv": [
    "command-argv"
  ],
  "timeout_sec": 10,
  "cwd": "/tmp"
}

JSON Schema

Show the raw definition
{
  "properties": {
    "agent_id": {
      "type": "string",
      "title": "Agent Id"
    },
    "command_argv": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Command Argv"
    },
    "timeout_sec": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Timeout Sec",
      "default": 10
    },
    "cwd": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Cwd",
      "default": "/tmp"
    },
    "additional_env": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Additional Env"
    }
  },
  "type": "object",
  "required": [
    "agent_id",
    "command_argv"
  ],
  "title": "OpenShellExecuteRequest"
}

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