{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/taskade-com/json-schema/taskade-com-space-agent-schema.json",
  "title": "SpaceAgent",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/taskade-com-openapi.json#/components/schemas/SpaceAgent",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "space_id": {
      "type": "string"
    },
    "data": {
      "type": "object",
      "properties": {
        "commands": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "description": "Human-readable name of the command in title case. This should probably be a verb."
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Short summary for discovery (e.g. progressive disclosure / skill listing). The full instruction stays in `prompt`."
              },
              "prompt": {
                "type": "string",
                "minLength": 1,
                "description": "Tell the agent what this command will do. It should be positioned as a direct instruction to the agent. At least 30 words."
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "description": "ID based on the name in snake case."
              },
              "mode": {
                "type": "string",
                "enum": [
                  "default",
                  "plan-and-execute-v1",
                  "plan-and-execute-v2"
                ],
                "default": "default"
              }
            },
            "required": [
              "name",
              "prompt",
              "id"
            ],
            "additionalProperties": false
          }
        },
        "description": {
          "type": "string",
          "description": "Role and purpose of agent, positioned as a direct instruction to the agent. Example: \"You are a doctor that helps save lives.\". At least 100 words."
        },
        "tone": {
          "type": "string",
          "enum": [
            "authoritative",
            "clinical",
            "cold",
            "confident",
            "cynical",
            "emotional",
            "empathetic",
            "formal",
            "friendly",
            "humourous",
            "informal",
            "ironic",
            "optimistic",
            "pessimistic",
            "playful",
            "sarcastic",
            "serious",
            "sympathetic",
            "tentative",
            "warm",
            "creative",
            "inspiring",
            "casual"
          ]
        },
        "avatar": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "emoji"
                  ]
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "value": {
                      "type": "string",
                      "description": "Pick the most suitable emoji for this agent."
                    }
                  },
                  "required": [
                    "value"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "type",
                "data"
              ],
              "additionalProperties": false
            }
          ]
        },
        "knowledgeEnabled": {
          "type": "boolean"
        },
        "language": {
          "type": "string",
          "description": "The language of the agent, e.g. en-US, zh-Hans"
        },
        "inputPlaceholder": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "commands"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "id",
    "name",
    "space_id",
    "data"
  ],
  "additionalProperties": false
}