loot_open_box
Open a loot box by spending one key and a slice of the pile, settle on-chain after the drand beacon to mint loot.
Instructions
Open loot boxes: spends one key of the chosen tier plus a slice of the unopened box pile now, waits for the pinned drand round, fetches the public beacon, and settles on-chain. Key source auto prefers a token-scoped key and falls back to a universal key. Reports the settled tier counts and loot minted. Needs LOOT_AGENT_PRIVATE_KEY.
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": {
"token": "<token>"
},
"name": "loot_open_box"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | ||
| token | Yes | ||
| key_source | No |