{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/made-app/json-schema/made-app-tool-schema.json",
  "title": "Tool",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/made-app-openapi.json#/components/schemas/Tool",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "id",
    "name",
    "slots",
    "settings",
    "inputSchema"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "model": {
      "type": "string",
      "description": "The model the tool runs on."
    },
    "modelName": {
      "type": "string"
    },
    "available": {
      "type": "boolean",
      "description": "False while the tool's model is unavailable."
    },
    "output": {
      "type": "object",
      "description": "What a run makes.",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "image",
            "video"
          ]
        },
        "format": {
          "type": "string"
        }
      }
    },
    "slots": {
      "type": "array",
      "description": "The media the tool takes, by slot id.",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "image",
              "video"
            ]
          },
          "label": {
            "type": "string"
          },
          "required": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          }
        }
      }
    },
    "settings": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "inputSchema": {
      "type": "object",
      "additionalProperties": true,
      "description": "JSON Schema for the `media` and `settings` of a quote or run."
    }
  }
}