Edit a companion
update_companionReplace a companion's stat block. Returns: The companion.
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>",
"companion": "<companion>"
},
"name": "update_companion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ac | No | Armor class. | |
| kind | No | What creature it is, in your words. | |
| name | No | Its name. Required. | |
| type | No | What kind of companion. | |
| boxes | No | Its actions and traits. | |
| hpMax | No | Maximum hit points. | |
| notes | No | Free notes. | |
| saves | No | Saving throw bonuses. | |
| speed | No | Speed line. | |
| scores | No | The six scores. | |
| senses | No | Senses line. | |
| skills | No | Skills line. | |
| campaign | Yes | The campaign, by its slug (what its link says) or its id. | |
| imageUrl | No | A picture's web address. | |
| sizeLine | No | Size and type line. | |
| character | Yes | The character, by its slug. | |
| companion | Yes | The companion's id. | |
| hpFormula | No | How the hit points are rolled. | |
| languages | No | Languages line. | |
| initiative | No | Initiative bonus. |