{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sentinelx-app/json-schema/sentinelx-app-op-request-schema.json",
  "title": "OpRequest",
  "description": "Body of ``POST /v1/op`` — the same triple an MCP tool resolves to.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sentinelx-app-openapi.json#/components/schemas/OpRequest",
  "properties": {
    "op": {
      "type": "string",
      "title": "Op"
    },
    "host_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Host Id"
    },
    "payload": {
      "additionalProperties": true,
      "type": "object",
      "title": "Payload"
    },
    "client_request_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Client Request Id",
      "description": "Optional caller-generated idempotency key. Reusing it with the same logical request replays the prior result without re-executing; reusing it with different op/host/payload is rejected."
    }
  },
  "type": "object",
  "required": [
    "op"
  ]
}