{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Agent Tool invocation",
  "type": "object",
  "required": [
    "schema_version",
    "invocation_id",
    "tool_id",
    "status",
    "created_at"
  ],
  "properties": {
    "schema_version": {
      "type": "string"
    },
    "invocation_id": {
      "type": "string"
    },
    "tool_id": {
      "type": "string"
    },
    "surface_id": {
      "type": "string"
    },
    "native_call_id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "model_input": {},
    "model_input_ref": {
      "type": "string"
    },
    "observable_input": {},
    "observable_input_ref": {
      "type": "string"
    },
    "permission_input": {},
    "permission_input_ref": {
      "type": "string"
    },
    "call_input": {},
    "call_input_ref": {
      "type": "string"
    },
    "actor_ref": {
      "type": "string"
    },
    "runtime_refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "policy_refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "permission_decision_refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "hook_refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "evidence_refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "telemetry_refs": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "artifact_refs": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "scheduler_policy_ref": {
      "type": "string"
    },
    "status_transitions": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "created_at": {
      "type": "string"
    },
    "started_at": {
      "type": "string"
    },
    "ended_at": {
      "type": "string"
    }
  },
  "additionalProperties": true
}
