foundry_roll
Roll a dice formula in FoundryVTT. Supports custom flavor, whisper targets, and chat message creation for encounters.
Instructions
Roll a dice formula.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"formula": "<formula>"
},
"name": "foundry_roll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flavor | No | ||
| userId | No | Optional Foundry user ID or username for permission-scoped access. | |
| formula | Yes | ||
| speaker | No | ||
| whisper | No | ||
| clientId | No | Foundry client ID; defaults to FOUNDRY_CLIENT_ID. | |
| createChatMessage | No |