Change somebody in a battle
update_participantTheir name, side, initiative, stat block or state. Health for a character at this table lands on their own sheet. GM only. Returns: The battle.
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>",
"battle": "<battle>",
"participant": "<participant>"
},
"name": "update_participant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Their name. | |
| role | No | A short line under the name. | |
| side | No | Which way they point. | |
| state | No | Health and the GM's notes. For a character at this table, health is written to their own sheet. | |
| stats | No | A stat block you supply, for somebody nobody has a sheet for. Invent it or take it from your own notes. | |
| battle | Yes | The battle's id. | |
| control | No | Who runs them. | |
| campaign | Yes | The campaign, by its slug (what its link says) or its id. | |
| initiative | No | Their initiative total, with the bonus already in. Stored exactly as given. | |
| participant | Yes | The participant's id. | |
| initiativeRoll | No | Or the number on the die alone: their bonus is added for you (a character's live one off their sheet). Wins over `initiative`. | |
| initiativeBonus | No | Their bonus, which breaks ties. Never added to `initiative`. |