{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-register-agent-definition-request-schema.json",
  "title": "RegisterAgentDefinitionRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-agent-definitions-api-openapi.yml#/components/schemas/RegisterAgentDefinitionRequest",
  "properties": {
    "name": {
      "$ref": "#/$defs/SlugString",
      "description": "Stable slug identifying this definition within the workspace."
    },
    "body": {
      "additionalProperties": true,
      "type": "object",
      "title": "Body",
      "description": "The framework-native definition document (its 'framework' field selects the shape). Validated by the platform clamp schema — a non-whitelisted field is rejected."
    }
  },
  "type": "object",
  "required": [
    "name",
    "body"
  ],
  "$defs": {
    "SlugString": {
      "type": "string",
      "maxLength": 63,
      "minLength": 2,
      "pattern": "^[a-z0-9][a-z0-9-]*[a-z0-9]$"
    }
  }
}