roll_dice
Roll dice using standard notation (e.g., '2d6', '1d20+5') with support for modifiers and keep-highest/lowest mechanics for tabletop gaming.
Instructions
Roll dice using standard dice notation (e.g., '2d6', '1d20+5', '3d8-2').
Args: notation: Dice notation string. Examples: - '1d6' - Roll one 6-sided die - '2d6' - Roll two 6-sided dice - '1d20+5' - Roll one 20-sided die and add 5 - '3d8-2' - Roll three 8-sided dice and subtract 2 - '4d6kh3' - Roll 4d6, keep highest 3 (D&D stat rolling) - '2d20kl1' - Roll 2d20, keep lowest 1 (disadvantage)
Returns: Dictionary with rolls, modifier, and total
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "roll_dice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notation | No | 1d6 |