{
  "type": "object",
  "properties": {
    "question": {
      "type": "string",
      "minLength": 3,
      "maxLength": 300,
      "description": "What to decide, e.g. \"Pay $42 to Acme for the API plan?\""
    },
    "details": {
      "description": "Context the human should see before choosing.",
      "type": "string",
      "maxLength": 2000
    },
    "options": {
      "description": "Choices. Default [\"Approve\", \"Deny\"].",
      "minItems": 2,
      "maxItems": 6,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 60
      }
    },
    "notify": {
      "description": "Also send the link here (same channels as the notify tool).",
      "type": "object",
      "properties": {
        "channel": {
          "type": "string",
          "enum": [
            "ntfy",
            "discord",
            "slack",
            "telegram",
            "webhook"
          ],
          "description": "ntfy (phone push), discord, slack, telegram or webhook."
        },
        "target": {
          "type": "string",
          "minLength": 3,
          "maxLength": 500,
          "description": "ntfy: a topic name only you know (e.g. \"acme-agent-7f3a9c\") or a full https URL to your ntfy server. discord / slack: the channel's incoming-webhook URL. telegram: \"<bot token>|<chat id>\". webhook: any https URL (we POST JSON)."
        }
      },
      "required": [
        "channel",
        "target"
      ],
      "additionalProperties": false
    },
    "webhook": {
      "description": "https URL we POST the answer to when it arrives.",
      "type": "string",
      "maxLength": 500,
      "format": "uri"
    },
    "expires_minutes": {
      "description": "Default 1440 (24 hours).",
      "type": "integer",
      "minimum": 5,
      "maximum": 10080
    }
  },
  "required": [
    "question"
  ],
  "additionalProperties": false
}