{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:orbitspace:cli-tool-request:v1",
  "title": "CLI Tool adapter request",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "execution_id",
    "tool",
    "workspace",
    "input_digest",
    "input"
  ],
  "properties": {
    "schema_version": {
      "const": "1"
    },
    "execution_id": {
      "type": "string",
      "format": "uuid"
    },
    "tool": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160
    },
    "workspace": {
      "type": "string",
      "minLength": 1,
      "maxLength": 4096
    },
    "input_digest": {
      "type": "string",
      "pattern": "^sha256:[0-9a-f]{64}$"
    },
    "input": {
      "type": "object"
    }
  }
}
