← All widgetsTier 1Games & Random

Dice Roller

Animated polyhedral dice.

Rolls one or more dice with animation. Supports d4–d20.

type · dice_roller
Runs entirely in the shell — no backend needed.

How to use it

Just ask for it in chat — the agent emits this widget and the shell renders it:

Try saying
roll 2d20

Example

The agent returns this A2UI component (inside the components array of a /chat response):

dice_roller.json
{
  "type": "dice_roller",
  "count": 2,
  "sides": 20,
  "color": "0xFF9C27B0"
}

Properties

PropTypeDescription
countnumberNumber of dice
sidesnumberDie type (4,6,8,10,12,20)
colorcolorDie color

Browse the full Widget Index, the Widget Catalog, or learn the A2UI system behind it.