{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/tool-manifest.schema.json",
  "title": "Wever Labs Operating Tool Manifest",
  "description": "Schema describing a Wever Labs operating tool in machine-readable form.",
  "type": "object",
  "required": [
    "id",
    "name",
    "type",
    "description",
    "accepted_handoff_types",
    "input_expectations",
    "workflow_states",
    "output_modes",
    "evidence_requirements",
    "entrypoints"
  ],
  "additionalProperties": true,
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "const": "operating_tool_manifest"
    },
    "description": {
      "type": "string"
    },
    "accepted_handoff_types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "input_expectations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "workflow_states": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "output_modes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "evidence_requirements": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "entrypoints": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "format": "uri"
      }
    },
    "review_required": {
      "type": "boolean"
    }
  }
}
