{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codai-ro/json-schema/codai-ro-host-exec-result-body-schema.json",
  "title": "Host exec result body",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codai-ro-hosts-api-openapi.yml#/components/schemas/HostExecResultBody",
  "type": "object",
  "required": [
    "ok"
  ],
  "properties": {
    "ok": {
      "type": "boolean",
      "description": "Whether the op succeeded on the host."
    },
    "result": {
      "description": "Any JSON produced by the op (e.g. `{ stdout, stderr, exit_code }` for `shell`); relayed as-is. Shape is defined by the desktop, not the gateway."
    },
    "error": {
      "type": "string",
      "maxLength": 4000,
      "description": "Human-readable failure reason when `ok` is false."
    }
  }
}