{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Agent Tool result",
  "type": "object",
  "required": [
    "schema_version",
    "result_id",
    "invocation_id",
    "status",
    "created_at"
  ],
  "properties": {
    "schema_version": {
      "type": "string"
    },
    "result_id": {
      "type": "string"
    },
    "invocation_id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "is_error": {
      "type": "boolean"
    },
    "content": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "structured_content": {},
    "model_facing_content": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "ui_facing_summary": {
      "type": "string"
    },
    "resource_refs": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "artifact_refs": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "evidence_refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "policy_refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "telemetry_refs": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "persistence_refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "summary": {
      "type": "string"
    },
    "redaction_state": {
      "type": "string"
    },
    "error": {
      "type": "object",
      "additionalProperties": true
    },
    "created_at": {
      "type": "string"
    }
  },
  "additionalProperties": true
}
