Skip to main content
Display a toast notification. Client-side only, no server trip.
{
  "type": "object",
  "properties": {
    "action": {
      "const": "showToast",
      "default": "showToast",
      "type": "string"
    },
    "message": {
      "description": "Toast message text",
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Optional secondary text"
    },
    "variant": {
      "enum": [
        "default",
        "success",
        "error",
        "warning",
        "info"
      ],
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Toast style variant"
    },
    "duration": {
      "type": [
        "integer",
        "null"
      ],
      "default": null,
      "description": "Auto-dismiss duration in milliseconds"
    }
  },
  "required": [
    "action",
    "message"
  ]
}