Change hit points, conditions or slots
update_character_stateThe changes a fight makes, in one call: damage (temporary hit points go first), healing (never past the maximum), temporary hit points, conditions on and off, an exhaustion level, spell slots spent or restored, and death saves. Everything else on the sheet is left alone. Returns: What has been spent and taken, as it now stands.
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": {
"campaign": "<campaign>",
"character": "<character>"
},
"name": "update_character_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hp | No | Set current hit points outright. | |
| heal | No | Hit points to get back. | |
| damage | No | Hit points of damage to take. | |
| tempHp | No | Set temporary hit points outright. | |
| campaign | Yes | The campaign, by its slug (what its link says) or its id. | |
| character | Yes | The character, by its slug. | |
| deathSaves | No | ||
| exhaustion | No | Set the exhaustion level outright, 1 to 6; 0 takes Exhaustion off. Putting it on with `addConditions` starts at 1. | |
| spendSlots | No | Spell slots to spend, by level: { "1": 1 }. | |
| restoreSlots | No | Spell slots to get back, by level. | |
| addConditions | No | Conditions to put on. | |
| exhaustionChange | No | Move the exhaustion level up (+1) or down (-1); down from 1 takes it off. | |
| removeConditions | No | Conditions to take off. |