update_character_sheet
Update a fantasy gamebook character sheet by patching scalars and lists, merging sub-dicts for skill, stamina, and luck, while validating invariants and preserving state on error.
Instructions
Patch the character sheet. Scalars/lists are replaced; attribute sub-dicts (skill/stamina/luck) are merged. Invariants are validated; on error the state is left unchanged.
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": {
"changes": "<changes>"
},
"name": "update_character_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gold | No | ||
| luck | Yes | ||
| name | Yes | ||
| alive | No | ||
| skill | Yes | ||
| stamina | Yes | ||
| inventory | No | ||
| conditions | No | ||
| provisions | No |