CAIN-42 CAIN Studio

API reference · schema

AgentAction

4 fields · used by 0 operations

Last reviewed 2026-10-11

Fields

FieldTypeMeaning
kind requiredstring'shell' or 'write_file'
max length 32
commandstring or nullmax length 16384
pathstring or nullmax length 1024
contentstring or nullmax length 32768

Smallest valid example

{
  "kind": "kind"
}

JSON Schema

Show the raw definition
{
  "properties": {
    "kind": {
      "type": "string",
      "maxLength": 32,
      "title": "Kind",
      "description": "'shell' or 'write_file'"
    },
    "command": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 16384
        },
        {
          "type": "null"
        }
      ],
      "title": "Command"
    },
    "path": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1024
        },
        {
          "type": "null"
        }
      ],
      "title": "Path"
    },
    "content": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32768
        },
        {
          "type": "null"
        }
      ],
      "title": "Content"
    }
  },
  "type": "object",
  "required": [
    "kind"
  ],
  "title": "AgentAction"
}

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