Character Hitdice Spend
character_hitdice_spendSpend one remaining Hit Dice use from a DND_5E character's pool to track short rest recovery. Check available uses with character_get, then select the pool entry by index; the action is pending until confirmed.
Instructions
Spend one remaining use from a DND_5E character's Hit Dice pool through WS. Use character_get to inspect pools first; dice_roll and token_hp_update perform rolling and healing separately, with no shared transaction. Upstream requires the character owner or DM and campaign assignment. index selects an array entry, not a dice count. Repeating spends again. Only the system is gated locally: there is no reliable capability probe, and older servers may silently ignore this event. Returns sent:true,confirmed:false,status:"pending" inside data: dispatch is not a business ACK. Read events_poll for results/system.error and inspect state before further action; never blindly resend. Returns {ok:true,data} on success; tool-body failures return {ok:false,error} with optional diagnostic data. Argument-schema errors are MCP errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Zero-based integer >=0 selecting an entry in sheet data.hitDice; inspect character_get for valid pools and remaining uses. | |
| character_id | Yes | Campaign-assigned DND_5E sheet ID whose Hit Dice pool is spent; not a map token ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||